/* eCommerce services page — used only by e-commerce-development.blade.php */

.ec-page {
  --ec-primary: #00B26B;
  --ec-primary-dark: #00623B;
  --ec-primary-deep: #004B2D;
  --ec-mint: #54CB9C;
  --ec-btn-label: #E6F7F0;
  --ec-heading: #1C2522;
  --ec-ink: #000000;
  --ec-body: rgba(0, 0, 0, .75);
  --ec-body-strong: rgba(0, 0, 0, .85);
  --ec-faq-ink: #16191C;
  --ec-tab-ink: #072623;
  --ec-tab-body: #4D5765;
  --ec-tab-muted: #B9BFBE;
  --ec-tab-icon-muted: #D2D6D5;
  --ec-tab-bg: #F7F8F8;
  --ec-chip-hover: #EBEBEB;
  --ec-chip-border: #DBDBDB;
  --ec-rule: rgba(0, 0, 0, .10);
  --ec-faq-rule: rgba(128, 129, 132, .30);
  --ec-band: #E6E6E6;
  --ec-card-border: #C9C8C8;
  --ec-input-border: #D2D2D2;
  --ec-placeholder: #BABABA;
  --ec-card-blue: #4865B0;
  --ec-card-deep: #092F2A;
  --ec-logo-grey: #656565;

  --ec-r-btn: 18px;
  --ec-r-btn-label: 16px;
  --ec-r-card: 10px;
  --ec-r-tile: 9.17px;

  --ec-ease-hover: cubic-bezier(0, 0, .71, .73);
  --ec-ease-out: cubic-bezier(0, 0, .58, 1);
  --ec-ease-in: cubic-bezier(.42, 0, 1, 1);
  --ec-ease-gentle: cubic-bezier(.4, 0, .2, 1);

  font-family: 'Poppins', sans-serif;
  color: var(--ec-ink);
  -webkit-font-smoothing: antialiased;
}

/* Container */
.ec-container {
  width: 100%;
  max-width: calc(1266px + 2 * 16px);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .ec-container { max-width: calc(1266px + 2 * 32px); padding-inline: 32px; }
}
@media (min-width: 1330px) {
  .ec-container { max-width: 1266px; padding-inline: 0; }
}

/* Typography */
.ec-eyebrow { font-weight: 400; font-size: 16px; line-height: 24px; color: var(--ec-primary); }
.ec-h2 { font-weight: 600; font-size: 28px; line-height: 1.3; }
.ec-body { font-weight: 400; font-size: 16px; line-height: 24px; color: var(--ec-body); }
@media (min-width: 768px) { .ec-h2 { font-size: 34px; } }
@media (min-width: 1024px) { .ec-h2 { font-size: 40px; line-height: 52px; } }

/* Button */
.ec-btn {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border-radius: var(--ec-r-btn);
  overflow: hidden;
  background: #004B2D;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font: inherit;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.ec-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 120%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 180deg,
    #FFFFFF 0%, #33C189 12%, #00A261 23%, #00623B 34%, #004B2D 50%, #FFFFFF 100%);
  animation: ecBtnSpin 3s linear infinite;
  pointer-events: none;
  transition: opacity .3s var(--ec-ease-hover);
}
@keyframes ecBtnSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.ec-btn:hover::after,
.ec-btn:focus-visible::after { opacity: 0; }
.ec-btn:hover,
.ec-btn:focus-visible { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }   /* keeps the button outline visible on the dark hero / form panel */
.ec-btn { transition: background-color .3s var(--ec-ease-hover), box-shadow .3s var(--ec-ease-hover); }

.ec-btn::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: #000;
  opacity: 0;
  transition: opacity .3s var(--ec-ease-hover);
}
.ec-btn__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--ec-r-btn-label);
  background: rgba(0, 178, 107, .9);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  color: var(--ec-btn-label);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  white-space: nowrap;
  transition: background-color .3s var(--ec-ease-hover), color .3s var(--ec-ease-hover);
}
.ec-btn__icon { width: 24px; height: 24px; flex: none; fill: #fff; transition: fill .3s var(--ec-ease-hover); }
.ec-btn:hover::before,
.ec-btn:focus-visible::before { opacity: 1; }
.ec-btn:hover .ec-btn__label,
.ec-btn:focus-visible .ec-btn__label { background-color: #000; color: #fff; }
.ec-btn:focus-visible { outline: 2px solid var(--ec-primary); outline-offset: 3px; }
.ec-btn:disabled { opacity: .6; cursor: not-allowed; }

.ec-btn--sm { padding: 1.5px; border-radius: 13.56px; }
.ec-btn--sm .ec-btn__label { gap: 3px; padding: 9px 12px; border-radius: 12.05px; font-size: 15.06px; line-height: 18.1px; }
.ec-btn--sm .ec-btn__icon { width: 18px; height: 18px; }

.ec-btn--block { display: flex; width: 100%; }

@media (max-width: 767px) {
  .ec-btn__label { font-size: 18px; }
}

/* Service panels: Figma does not centre every panel's columns, so each block carries its own offsets */
@media (min-width: 1280px) {
  .ec-svc__visual, .ec-svc__copy { position: relative; }
  .ec-svc__visual { top: var(--ec-vis-dy, 0px); }
  .ec-svc__copy { top: var(--ec-txt-dy, 0px); }
  .ec-svc__copy > * + * { margin-top: var(--ec-txt-gap, 21px); }
}

/* Chips + tab bar */
.ec-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--ec-ink);
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-family: inherit;
  transition: background-color .3s var(--ec-ease-in), color .3s var(--ec-ease-in);
}
.ec-chip:hover,
.ec-chip:focus-visible { background-color: var(--ec-chip-hover); }
.ec-chip.is-active { background-color: #000; color: #fff; }
.ec-chip:focus-visible { outline: 2px solid var(--ec-primary); outline-offset: 2px; }

.ec-chip--dark { background-color: rgba(255, 255, 255, .10); color: #fff; }
.ec-chip--dark:hover,
.ec-chip--dark:focus-visible { background-color: rgba(255, 255, 255, .22); }
.ec-chip--dark.is-active { background-color: #fff; color: #000; }

.ec-tabbar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: var(--ec-header-h, 76px);
  z-index: 20;
  background: #fff;
  display: flex;
  justify-content: center;
  --ec-tab-pad: 12px;
  padding: var(--ec-tab-pad) 0;
}
@media (min-width: 1280px) { .ec-tabbar-sticky { --ec-tab-pad: 57px; } }
.ec-tabbar-sticky::before,
.ec-tabbar-sticky::after {
  content: ""; position: absolute; top: calc(var(--ec-tab-pad) + 1px); bottom: calc(var(--ec-tab-pad) + 1px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.ec-tabbar-sticky::after { right: 1px; width: 56px; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 80%); }
.ec-tabbar-sticky::before { left: 1px; width: 44px; border-radius: 99px 0 0 99px; background: linear-gradient(270deg, rgba(255, 255, 255, 0), #fff 80%); }
.ec-tabbar-sticky.is-overflowing:not(.is-scrolled-end)::after,
.ec-tabbar-sticky.is-overflowing.is-scrolled-start::before { opacity: 1; }

.ec-tabbar {
  display: flex;
  gap: 28px;
  box-sizing: border-box;
  height: 64px;
  padding: 9px 10px;
  border: 1px solid var(--ec-chip-border);
  border-radius: 99px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ec-tabbar::-webkit-scrollbar { display: none; }
.ec-tabbar .ec-chip { flex: none; }
@media (min-width: 1280px) {
  .ec-tabbar { width: 1007px; }
  .ec-tabbar .ec-chip { width: var(--chip-w, auto); }
}
@media (max-width: 1023px) { .ec-tabbar { gap: 8px; } }

/* Case-study strip line */
/* Gradient Line (Figma 774:10890): rests on variant 774:10897 and smart-animates to 774:10891
   (every stop shifts one place right) and back, 1.25s each way */
@property --ec-gl-1 { syntax: '<color>'; inherits: false; initial-value: #54CB9C; }
@property --ec-gl-2 { syntax: '<color>'; inherits: false; initial-value: #00B26B; }
@property --ec-gl-3 { syntax: '<color>'; inherits: false; initial-value: #00623B; }
@property --ec-gl-4 { syntax: '<color>'; inherits: false; initial-value: #000000; }
.ec-gline {
  --ec-gl-1: #54CB9C; --ec-gl-2: #00B26B; --ec-gl-3: #00623B; --ec-gl-4: #000000;
  height: 2px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--ec-gl-1) 0%, var(--ec-gl-2) 33%, var(--ec-gl-3) 67%, var(--ec-gl-4) 100%);
  animation: ecGlineShift 1.25s cubic-bezier(.45, 0, .2, 1) infinite alternate;
}
@keyframes ecGlineShift {
  to { --ec-gl-1: #000000; --ec-gl-2: #54CB9C; --ec-gl-3: #00B26B; --ec-gl-4: #00623B; }
}

.ec-builtwith { font-weight: 500; font-size: 15.76px; line-height: 27.7px; text-transform: uppercase; color: var(--ec-ink); white-space: nowrap; }

/* Case-study carousel */
.ec-carousel { position: relative; overflow: hidden; }
.ec-carousel { --ec-card-w: 546px; }
.ec-carousel__viewport {
  overflow: hidden;
  padding-inline: calc((100% - var(--ec-card-w)) / 2);   /* card 1 starts centred, no JS needed */
}
.ec-carousel__track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 1.02s var(--ec-ease-gentle);
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
.ec-carousel__track.is-jumping { transition: none; }
.ec-carousel__track.is-settling { transition-duration: .6s; }
.ec-carousel__track.is-dragging { transition: none; user-select: none; -webkit-user-select: none; }
.ec-carousel__track.is-dragging, .ec-carousel__track.is-dragging * { cursor: grabbing; }
.ec-carousel__track img, .ec-carousel__track a { -webkit-user-drag: none; }
.ec-card {
  position: relative;
  flex: 0 0 var(--ec-card-w);
  width: var(--ec-card-w);
  height: 735px;
  border-radius: 5px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ec-card {
  opacity: .45;
  transition: opacity .6s var(--ec-ease-gentle);
}
.ec-card.is-active { opacity: 1; }
.ec-carousel__track.is-dragging .ec-card { opacity: 1; }
.ec-card--green { background: var(--ec-primary); }
.ec-card--blue  { background: var(--ec-card-blue); }
.ec-card--deep  { background: var(--ec-card-deep); }
.ec-card__arrow {
  position: absolute;
  top: 21px;
  right: 25px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  transition: transform .3s var(--ec-ease-out);
}
.ec-card:hover .ec-card__arrow { transform: translate(2px, -2px); }
.ec-card__media { height: 260px; width: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .ec-carousel { --ec-card-w: min(546px, calc(100vw - 48px)); }
  .ec-card { flex-basis: var(--ec-card-w); width: var(--ec-card-w); height: auto; min-height: 640px; }
  .ec-card__media { height: 220px; }
}

.ec-ribbon {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 11px;
  border-radius: 99px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1064px;
  flex: 0 1 auto;
}
.ec-ribbon::-webkit-scrollbar { display: none; }
.ec-ribbon__track { display: flex; gap: 16px; }

.ec-navbtn {
  width: 39px;
  height: 39px;
  flex: none;
  border-radius: 50%;
  border: 1.6px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: rgba(255, 255, 255, .5);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color .3s var(--ec-ease-out), border-color .3s var(--ec-ease-out), color .3s var(--ec-ease-out), opacity .3s;
}
.ec-navbtn:hover,
.ec-navbtn:focus-visible { background-color: var(--ec-primary); border-color: var(--ec-primary); color: #fff; }
.ec-navbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ec-navbtn__icon {
  display: block; width: 26px; height: 26px;
  background-color: currentColor;
  -webkit-mask: url("../img/ecommerce/icons/chevron.svg") center / contain no-repeat;
          mask: url("../img/ecommerce/icons/chevron.svg") center / contain no-repeat;
}
.ec-navbtn--prev .ec-navbtn__icon { transform: rotate(180deg); }

/* "What makes us different" tabs */
.ec-dtab {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--ec-tab-bg);
  padding: 30px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--ec-tab-muted);
  transition: color .3s var(--ec-ease-out);
  min-height: 213px;
}
.ec-dtab__icon { width: 26px; height: 26px; flex: none; color: var(--ec-tab-icon-muted); transition: color .3s var(--ec-ease-out); }
.ec-dtab__icon {
  background-color: currentColor;
  -webkit-mask: var(--ec-icon) center / contain no-repeat;
          mask: var(--ec-icon) center / contain no-repeat;
}
.ec-dtab__icon--partnership     { --ec-icon: url("../img/ecommerce/icons/diff-partnership.svg"); }
.ec-dtab__icon--ecommerce-first { --ec-icon: url("../img/ecommerce/icons/diff-ecommerce-first.svg"); }
.ec-dtab__icon--built-around    { --ec-icon: url("../img/ecommerce/icons/diff-built-around.svg"); }
.ec-dtab__icon--impact          { --ec-icon: url("../img/ecommerce/icons/diff-impact.svg"); }
.ec-dtab__title { font-weight: 500; font-size: 16px; line-height: 42px; color: inherit; }
.ec-dtab__body { font-weight: 400; font-size: 14px; line-height: 21px; color: inherit; margin-top: 6px; }
.ec-dtab__rail { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #fff; }
.ec-dtab__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ec-primary);
  transform-origin: left center;
  transform: scaleX(0);
}
.ec-dtab.is-active { color: var(--ec-tab-ink); }
.ec-dtab.is-active .ec-dtab__rail { background: rgba(0, 178, 107, .35); }   /* full-width underline from the start; the timer fills it solid */
.ec-dtab.is-active .ec-dtab__body { color: var(--ec-tab-body); }
.ec-dtab.is-active .ec-dtab__icon { color: var(--ec-primary); }
.ec-dtab.is-active .ec-dtab__rail::after { animation: ecRailFill 5s linear .001s forwards; }
.ec-dtabs.is-paused .ec-dtab.is-active .ec-dtab__rail::after { animation-play-state: paused; }
@keyframes ecRailFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ec-dtab:focus-visible { outline: 2px solid var(--ec-primary); outline-offset: -2px; }

.ec-dpanel { position: relative; height: 498px; border-radius: 0 0 10px 10px; overflow: hidden; background: #000; }
.ec-dpanel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ec-ease-out); }
.ec-dpanel__img.is-active { opacity: 1; }
@media (max-width: 1023px) { .ec-dpanel { height: 360px; } }
@media (max-width: 639px) { .ec-dpanel { height: 240px; } }

/* Platform tiles */
.ec-tile {
  --c: var(--ec-primary);
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: var(--ec-r-tile);
  background-color: #000;

  background-image: linear-gradient(135deg, var(--c) -60%, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0) 56%, var(--c) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px 6px;
  transition: transform .3s var(--ec-ease-out), box-shadow .3s var(--ec-ease-out);
}
.ec-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.ec-tile__art { height: 54px; display: flex; align-items: center; justify-content: center; }
.ec-tile__art img { max-height: 54px; width: auto; }
.ec-tile { container-type: inline-size; }
.ec-tile__label { font-weight: 400; font-size: 11.05px; line-height: 11.7px; text-wrap: balance; }
/* one line only where the tile has room (Figma: "Amazon Web Services" is 123px in a 132px tile); narrower tiles wrap */
@container (min-width: 112px) { .ec-tile__label { white-space: nowrap; } }
.ec-tile__label.ec-tile__label--wrap { white-space: normal; max-width: 84px; }   /* Figma sets this label on two centred lines */
.ec-tile--purple { --c: #873EFF; }
.ec-tile--green  { --c: #00B26B; }
.ec-tile--blue   { --c: #007DFC; }
.ec-tile--orange { --c: #F2551E; }
.ec-tile--amber  { --c: #FFB901; }
.ec-tile--grey   { --c: #78858E; }
@media (max-width: 639px) {
  .ec-tile { width: 100%; height: auto; aspect-ratio: 1; }
}
/* tablets: as many Figma-size tiles per row as fit, evenly spaced, instead of 132px tiles in wide thirds */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .ec-platform-grid { grid-template-columns: repeat(auto-fill, 132px); }
}

@media (min-width: 1024px) and (max-width: 1329.98px) {
  .ec-platform-row > :first-child { flex: 0 0 min(435px, 38%); min-width: 0; }
  .ec-platform-grid { flex: 1 1 0; width: auto; min-width: 0; max-width: 755px; }
  .ec-platform-grid .ec-tile { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Client logos */
.ec-logo-cell {
  height: 80px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ec-logo-cell img { transition: opacity .3s var(--ec-ease-in); display: block; }
.ec-logo-cell.is-swapping img { opacity: 0; }

.ec-rev { width: 29px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .10); object-fit: cover; }

/* Partner ticker */
.ec-ticker { height: 131px; width: 233px; overflow: hidden; }
.ec-ticker__col { display: flex; flex-direction: column; animation: ecTicker 20s var(--ec-ease-gentle) infinite; }
.ec-ticker__col img { height: 131px; width: 233px; object-fit: contain; flex: none; }
@keyframes ecTicker {
  0%, 16%   { transform: translateY(0); }
  20%, 36%  { transform: translateY(-131px); }
  40%, 56%  { transform: translateY(-262px); }
  60%, 76%  { transform: translateY(-393px); }
  80%, 96%  { transform: translateY(-524px); }
  100%      { transform: translateY(-655px); }
}

/* FAQ */
.ec-faq { border-bottom: 1px solid var(--ec-faq-rule); padding-bottom: 22px; }
.ec-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 47px;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ec-faq-ink);
}
.ec-faq__q { font-weight: 500; font-size: 20px; line-height: 48.4px; letter-spacing: -.8px; flex: 1 1 auto; }
/* one-line questions keep Figma's 48.4px row; questions that wrap get normal line spacing */
@media (min-width: 768px) { .ec-faq__q { line-height: 30px; padding-block: 9.2px; } }
.ec-faq__icon { width: 42px; height: 42px; flex: none; transition: transform .3s var(--ec-ease-out); }
.ec-faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ec-ease-out); }
.ec-faq__panel > div { overflow: hidden; }
.ec-faq__a { font-weight: 400; font-size: 18px; line-height: 33px; color: var(--ec-body); padding-top: 22px; }
.ec-faq.is-open .ec-faq__panel { grid-template-rows: 1fr; }
.ec-faq.is-open .ec-faq__icon { transform: rotate(45deg); }
.ec-faq__btn:focus-visible { outline: 2px solid var(--ec-primary); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 767px) {
  .ec-faq__q { font-size: 17px; line-height: 30px; letter-spacing: -.4px; }
  .ec-faq__btn { gap: 16px; }
  .ec-faq__a { font-size: 16px; line-height: 28px; }
}

/* Contact form */
.ec-field { display: flex; flex-direction: column; gap: 4px; }
.ec-label { font-weight: 400; font-size: 16px; line-height: 24px; color: var(--ec-ink); display: flex; justify-content: space-between; }
.ec-input {
  width: 100%;
  height: 60px;
  padding: 18px 17px;
  border: 1px solid var(--ec-input-border);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--ec-ink);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.ec-input::placeholder { color: var(--ec-placeholder); opacity: 1; }
.ec-input:focus { outline: none; border-color: var(--ec-primary); box-shadow: 0 0 0 3px rgba(0, 178, 107, .18); }
.ec-input--area { height: 123px; resize: none; }
.ec-select-wrap { position: relative; }
.ec-select-wrap .ec-input { padding-right: 48px; cursor: pointer; }
.ec-select-wrap .ec-input.is-placeholder { color: var(--ec-placeholder); }
.ec-select-wrap__chev {
  position: absolute; right: 9px; top: 18px; width: 24px; height: 24px;
  pointer-events: none; border-radius: 50%; display: grid; place-items: center;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25));
}
.ec-error { display: block; min-height: 0; font-size: 12px; line-height: 16px; color: #dc2626; }
.ec-error:empty { display: none; }

.ec-spinner {
  display: inline-block;
  width: 18px; height: 18px; flex: none;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ecSpin .8s linear infinite;
}
@keyframes ecSpin { to { transform: rotate(360deg); } }
.ec-btn .ec-btn__sending { display: none; }
.ec-btn.is-loading [data-ec-submit-label] { display: none; }
.ec-btn.is-loading .ec-btn__sending { display: inline; }
.ec-btn.is-loading, .ec-btn:disabled { cursor: progress; }
.ec-btn.is-loading::after { animation-play-state: paused; }

.ec-btn.is-loading::before, .ec-btn:disabled::before { opacity: 0 !important; }
.ec-btn.is-loading::after, .ec-btn:disabled::after { opacity: 1 !important; }
.ec-btn.is-loading .ec-btn__label, .ec-btn:disabled .ec-btn__label { background-color: rgba(0, 178, 107, .9) !important; color: var(--ec-btn-label) !important; }
.ec-btn.is-loading .ec-btn__icon { display: none; }
.ec-btn.is-loading .ec-btn__label { gap: 10px; }
.ec-btn:disabled { opacity: 1; }
.custom-form-box.is-submitting .ec-input { opacity: .6; pointer-events: none; }

.ec-contact-panel {
  background: #000 url("../img/ecommerce/contact-bg.webp") center / cover no-repeat;
  color: #fff;
}
.ec-stat-num { font-weight: 500; font-size: 48px; line-height: 50px; }
.ec-stat-txt { font-weight: 400; font-size: 16px; line-height: 22px; }

/* Store dashboard (svc-dashboard) */
.ec-dash {
  --dash-green: var(--ec-primary);
  --dash-card-bg: rgba(248, 248, 248, .54);
  --dash-card-border: rgba(101, 101, 101, .28);
  --dash-bar-bg: rgba(0, 0, 0, .008);   /* Figma: white 5% + 65px background blur renders as #F9F9F9 */
  --dash-rule: rgba(101, 101, 101, .28);
  --dash-tab-rule: rgba(0, 0, 0, .10);
  --dash-grid: rgba(0, 0, 0, .10);
  --dash-label: rgba(0, 0, 0, .25);
  --dash-figure: rgba(0, 0, 0, .50);
  --dash-delta-bg: rgba(17, 180, 109, .10);
  --dash-control: rgba(0, 0, 0, .05);
  --dash-control-hover: rgba(0, 0, 0, .09);
  --dash-control-ink: rgba(0, 0, 0, .50);
  --dash-menu-ink: #3D3D3D;
  --dash-tab-ink: #000;
  --dash-target: linear-gradient(180deg, rgba(101, 216, 124, .25) 42%, rgba(153, 153, 153, 0) 100%);
  --dash-target-hover: linear-gradient(180deg, rgba(101, 216, 124, .38) 42%, rgba(153, 153, 153, 0) 100%);
  --dash-red: #F16760;
  --dash-yellow: #FFE57E;
  container-type: inline-size;
  font-family: 'Poppins', sans-serif;
}
.ec-dash__card {
  font-size: 11px;
  font-size: clamp(7px, 2.168cqw, 16px);
  position: relative;
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-radius: 1.39em;                /* Figma r11 */
  color: var(--dash-figure);
  line-height: 1.2;
  animation: ecDashIn .5s var(--ec-ease-out) both;
}
@keyframes ecDashIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ec-dash__bar-top {
  display: flex; align-items: center;
  height: 4em;
  padding: 0 2em 0 1.875em;
  background: var(--dash-bar-bg);
  border-bottom: 1px solid var(--dash-rule);
  border-radius: calc(1.39em - 1px) calc(1.39em - 1px) 0 0;
}
.ec-dash__store { width: 2em; height: 2em; flex: none; color: var(--dash-green); }
.ec-dash__title {
  margin-left: .737em;
  font-size: max(1.1875em, 11px);
  color: var(--dash-green);
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ec-dash__lights { display: flex; gap: .5625em; margin-left: auto; padding-left: 1em; flex: none; }
.ec-dash__lights i { width: .75em; height: .75em; border-radius: 50%; background: var(--dash-green); }
.ec-dash__lights i:first-child { background: var(--dash-red); }
.ec-dash__lights i:nth-child(2) { background: var(--dash-yellow); }

.ec-dash__body { padding: 2.25em 3em 2.125em; }

.ec-dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.ec-dash__label { margin: 0; font-size: 1.625em; line-height: 1.2; color: var(--dash-label); }
.ec-dash__figure { display: flex; align-items: center; gap: 1em; margin: .5em 0 0; }
.ec-dash__total {
  font-size: 2.5em; line-height: 1.2;
  color: var(--dash-figure);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ec-dash__delta {
  display: inline-flex; align-items: center;
  height: 2.4em;
  padding: 0 .933em;
  border-radius: .4em;
  background: var(--dash-delta-bg);
  border-radius: .556em;                /* Figma r4.4 */
  color: var(--dash-green);
  font-size: max(.9375em, 10px);
  line-height: 1;
  white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.ec-dash__delta.is-down { background: rgba(240, 98, 95, .14); color: #DE4B47; }

.ec-dash__range { position: relative; flex: none; }
.ec-dash__range-btn {
  display: inline-flex; align-items: center; gap: .9em;
  height: 2.67em;                       /* Figma: 83 x 25 control, 9.4px label */
  padding: 0 .95em 0 .85em;
  border: 0; border-radius: .48em;
  background: var(--dash-control);
  color: var(--dash-control-ink);
  font: inherit; font-size: max(1em, 10px); line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ec-ease-gentle), transform .12s var(--ec-ease-gentle);
}
.ec-dash__range-btn:hover { background: var(--dash-control-hover); }
.ec-dash__range-btn:active { transform: scale(.97); }
.ec-dash__range-btn:focus-visible { outline: 2px solid var(--dash-green); outline-offset: 2px; }
.ec-dash__caret {
  width: .556em; height: .333em; flex: none; color: inherit;
  background-color: currentColor;
  -webkit-mask: url("../img/ecommerce/icons/dash-caret.svg") center / contain no-repeat;
          mask: url("../img/ecommerce/icons/dash-caret.svg") center / contain no-repeat;
  transition: transform .2s var(--ec-ease-gentle);
}
.ec-dash__range.is-open .ec-dash__caret { transform: rotate(180deg); }
.ec-dash__menu {
  position: absolute; z-index: 5; top: calc(100% + .375em); right: 0;
  min-width: 100%;
  margin: 0; padding: .375em; list-style: none;
  background: #fff;
  border: 1px solid var(--dash-card-border);
  border-radius: .625em;
  box-shadow: 0 .75em 2em rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px) scale(.98);
  transform-origin: top right;
  transition: opacity .2s var(--ec-ease-gentle), transform .2s var(--ec-ease-gentle), visibility 0s linear .2s;
}
.ec-dash__range.is-open .ec-dash__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ec-dash__menu li {
  padding: .6em 1.0625em;
  border-radius: .4em;
  font-size: max(1.125em, 12px); line-height: 1.2;
  color: var(--dash-menu-ink);
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: background-color .14s;
}
.ec-dash__menu li:hover, .ec-dash__menu li:focus-visible { background: #F1F1F1; }
.ec-dash__menu li[aria-selected="true"] { color: var(--dash-green); }

.ec-dash__tabs { display: flex; margin-top: 3.25em; border-bottom: 1px solid var(--dash-tab-rule); }
.ec-dash__tab {
  position: relative;
  margin-bottom: -1px;
  padding: .421em .947em .842em;
  border: 0; background: none;
  font: inherit; font-size: 1.1875em; line-height: 1.4;
  color: var(--dash-tab-ink);
  cursor: pointer;
}
.ec-dash__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: max(.11em, 1px);              /* Figma: 0.88px underline */
  background: var(--dash-green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ec-ease-out);
}
.ec-dash__tab.is-active::after { transform: scaleX(1); }
.ec-dash__tab:focus-visible { outline: 2px solid var(--dash-green); outline-offset: -2px; border-radius: .25em; }

.ec-dash__chart { position: relative; height: 19.875em; margin-top: 3.375em; }
.ec-dash__grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.ec-dash__grid i {
  height: 1px;
  transform: scaleY(.5); transform-origin: top;   /* Figma: 0.5px dashed rule, 4.38 dash / 4.38 gap */
  background: linear-gradient(90deg, var(--dash-grid) 0 .554em, transparent .554em 1.108em) 0 0 / 1.108em 1px repeat-x;
}
.ec-dash__bars { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; }
.ec-dash__bar {
  position: relative;
  width: 4.375em; height: 100%;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ec-dash__bar-target, .ec-dash__bar-value {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: block;
  transition:
    height .65s var(--ec-ease-gentle) calc(var(--i, 0) * 60ms),
    transform .18s var(--ec-ease-gentle),
    background-color .18s;
}
.ec-dash__bar-target { height: calc(var(--t) * 100%); background: var(--dash-target); border-radius: .126em .126em 0 0; }
.ec-dash__bar:first-child .ec-dash__bar-target { background: rgba(17, 180, 109, .25); }   /* Figma draws the first target bar solid */
.ec-dash__bar-value  { height: calc(var(--v) * 100%); background: var(--dash-green); }
.ec-dash__chart.is-entering .ec-dash__bar-target,
.ec-dash__chart.is-entering .ec-dash__bar-value { height: 0; transition: none; }

.ec-dash[data-ec-reveal]:not(.is-inview) .ec-dash__card { opacity: 0; transform: translateY(18px); animation: none; }
.ec-dash[data-ec-reveal].is-inview .ec-dash__card { animation: none; opacity: 1; transform: none; transition: opacity .6s var(--ec-ease-out), transform .7s var(--ec-ease-out); }
.ec-dash[data-ec-reveal]:not(.is-inview) .ec-dash__bar-target,
.ec-dash[data-ec-reveal]:not(.is-inview) .ec-dash__bar-value { height: 0; transition: none; }
.ec-dash__bar:hover .ec-dash__bar-target, .ec-dash__bar:focus-visible .ec-dash__bar-target,
.ec-dash__bar:hover .ec-dash__bar-value,  .ec-dash__bar:focus-visible .ec-dash__bar-value { transform: translateY(-3px); }
.ec-dash__bar:hover .ec-dash__bar-target, .ec-dash__bar:focus-visible .ec-dash__bar-target { background: var(--dash-target-hover); }
.ec-dash__bar:first-child:hover .ec-dash__bar-target, .ec-dash__bar:first-child:focus-visible .ec-dash__bar-target { background: rgba(17, 180, 109, .36); }
.ec-dash__bar:hover .ec-dash__bar-value,  .ec-dash__bar:focus-visible .ec-dash__bar-value  { background: #00A463; }
.ec-dash__bar:focus-visible { outline: 2px solid var(--dash-green); outline-offset: 3px; }

.ec-dash__tip {
  position: absolute; z-index: 4; left: 0; bottom: 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--ec-heading);
  color: #fff;
  font-size: 12px; line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, 4px);
  opacity: 0;
  transition: opacity .16s var(--ec-ease-gentle), transform .16s var(--ec-ease-gentle);
}
.ec-dash__tip strong { display: block; font-weight: 600; }
.ec-dash__tip span { color: rgba(255, 255, 255, .7); }
.ec-dash__tip::after {
  content: ""; position: absolute; top: 100%; left: var(--arrow, 50%);
  border: 5px solid transparent; border-top-color: var(--ec-heading);
  transform: translateX(-50%);
}
.ec-dash__tip.is-visible { opacity: 1; transform: translate(-50%, 0); }

@container (max-width: 340px) {
  .ec-dash__card { font-size: 8px; }
  .ec-dash__body { padding: 2em 1.75em 1.75em; }
  .ec-dash__bar-top { padding: 0 1.5em; }
  .ec-dash__head { gap: .75em; }
  .ec-dash__range-btn { height: 2.5em; gap: 1em; padding: 0 1em 0 .9em; }
  .ec-dash__chart { height: 17em; margin-top: 2.5em; }
  .ec-dash__tabs { margin-top: 2.25em; }
}

/* HTML illustrations (Figma px = em) */
.ec-illo { position: relative; width: 100%; max-width: calc(var(--w) * 1px); container-type: inline-size; }
.ec-illo__stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--w) / var(--h);
  font-size: 1px;
  font-size: calc(100cqw / var(--w));
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}
.ec-illo__stage > *, .ec-illo__glass > *, .ec-illo__card > *, .ec-illo__titlebar > *, .ec-illo__txt { position: absolute; }
.ec-illo__txt > * { display: block; margin: 0; }
.ec-illo__glass {
  border-radius: 10.77em;
  background: rgba(249, 249, 249, .05);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.ec-illo__glass::before, .ec-illo__window::before, .ec-illo__titlebar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1em;
  background: linear-gradient(132deg, #00B26B 11%, #000 53%, #00B26B 68%, #000 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.ec-illo__window::before, .ec-illo__titlebar::before {
  padding: 1.56em;
  background: linear-gradient(111deg, #00B26B 0%, #000 90%);
}
.ec-illo__window { border-radius: 15.65em; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.ec-illo__titlebar { border-radius: 15.65em 15.65em 0 0; background: rgba(249, 249, 249, .12); }
.ec-illo__panel { border-radius: 15.65em; -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); background: transparent; }
.ec-illo__panel::before { content: none; }
.ec-illo__pill { background: rgba(255, 255, 255, .05); }
.ec-illo__badge { z-index: 1; background: radial-gradient(circle at 50% 50%, rgba(0, 178, 107, .22), rgba(249, 249, 249, .05) 72%); }
.ec-illo__lights { display: flex; gap: 3.48em; }
.ec-illo__lights i { width: 8.11em; height: 8.11em; border-radius: 50%; background: #65D87C; }
.ec-illo__lights i:first-child { background: #F16760; }
.ec-illo__lights i:nth-child(2) { background: #FFE57E; }
.ec-illo__lights--sm { gap: 2.77em; }
.ec-illo__lights--sm i { width: 6em; height: 6em; background: #B88DFF; }
.ec-illo__lights--sm i:first-child { background: #F16760; }
.ec-illo__lights--sm i:nth-child(2) { background: #FFE57E; }
.ec-illo__icon, .ec-illo__glow { display: block; }
.ec-illo__icon img, .ec-illo__glow img, .ec-illo__chart img, .ec-illo__line img { display: block; width: 100%; height: 100%; max-width: none; }
.ec-illo__glow { filter: blur(var(--blur, 6em)); opacity: 1; pointer-events: none; }
.ec-illo__store-title { font-size: 19.16em; line-height: .767; color: rgba(255, 255, 255, .81); white-space: nowrap; }
.ec-illo__line { pointer-events: none; }
.ec-illo__tile { transition: transform .3s var(--ec-ease-out), background-color .3s var(--ec-ease-out); }
.ec-illo__tile:hover { transform: translateY(-3em); background: rgba(249, 249, 249, .09); }
.ec-illo__tile--light {
  border-radius: 8.58em;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 .98em rgba(101, 101, 101, .28);
}
.ec-illo__tile--light::before { content: none; }
.ec-illo__tile--light:hover { background: rgba(0, 178, 107, .06); }
.ec-illo__card {
  border-radius: 11em;
  background: rgba(248, 248, 248, .54);
  box-shadow: inset 0 0 0 1em rgba(101, 101, 101, .28);
}

/* Logo marquees */
.ec-marquee { min-width: 0; max-width: 100%; }
.ec-marquee__track { display: flex; }
.ec-marquee__set[aria-hidden="true"] { display: none; }
@media (max-width: 639px) {
  .ec-marquee {
    width: 100%;
    flex: 1 1 100%;
    contain: inline-size;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .ec-marquee__track { width: max-content; animation: ecMarquee 16s linear infinite; }
  .ec-marquee__set { gap: 28px; padding-right: 28px; }
  .ec-marquee__set[aria-hidden="true"] { display: flex; }
  .ec-marquee__set img { height: 56px; }
  .ec-marquee:hover .ec-marquee__track, .ec-marquee:active .ec-marquee__track { animation-play-state: paused; }
}
@keyframes ecMarquee { to { transform: translateX(-50%); } }

.ec-marquee--trusted .ec-marquee__set { flex: 1 1 100%; width: 100%; }
@media (max-width: 639px) {
  .ec-marquee--trusted .ec-marquee__set { display: flex; flex: none; width: max-content; align-items: center; gap: 44px; padding-right: 44px; }
  .ec-marquee--trusted .ec-marquee__track { animation-duration: 28s; }
  .ec-marquee--trusted .ec-logo-cell { height: 80px; width: max-content; flex: none; }
  .ec-marquee--trusted .ec-logo-cell img { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-marquee__track { animation: none !important; }
  .ec-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .ec-illo[data-ec-reveal] .ec-illo__stage > * {
    opacity: 0;
    transform: translateY(14em);
    transition: opacity .6s var(--ec-ease-out), transform .7s var(--ec-ease-out);
    transition-delay: calc(var(--d, 0) * 70ms);
  }
  .ec-illo[data-ec-reveal].is-inview .ec-illo__stage > * { opacity: 1; transform: none; }
  .ec-illo[data-ec-reveal] .ec-illo__line { transition-duration: .5s; }
  .ec-illo--hero[data-ec-reveal] .ec-illo__stage > * { transition-delay: calc(.15s + var(--d, 0) * 80ms); }
}

.ec-hero__visual { width: 100%; max-width: 457px; margin-inline: auto; }
@media (min-width: 1024px) { .ec-hero__visual { margin-inline: auto 0; } }
@media (min-width: 1280px) { .ec-hero__visual { width: 100%; max-width: 457px; margin: 36px 0 0 auto; } }

.ec-ai {
  border-radius: 11em;
  background: rgba(248, 248, 248, .54);
  box-shadow: inset 0 0 0 1em rgba(101, 101, 101, .28);
}
.ec-ai__titlebar {
  left: 1em; top: 1em; width: 363em; height: 29em;
  border-radius: 8.58em 8.58em 0 0;
  background: rgba(255, 255, 255, .05);
  border-bottom: .98em solid rgba(101, 101, 101, .28);
}
.ec-ai__titlebar > * { position: absolute; }
.ec-ai__title { font-size: 9.71em; line-height: .76; color: var(--ec-primary); white-space: nowrap; }
.ec-ai__row {
  left: 13em; width: 339em; height: 54em;
  border-radius: 8.58em;
  background: #F8F8F8;
  box-shadow: inset 0 0 0 .98em rgba(101, 101, 101, .28);
  transition: transform .3s var(--ec-ease-out), box-shadow .3s var(--ec-ease-out), background-color .3s;
  cursor: default;
}
.ec-ai__row > * { position: absolute; }
.ec-ai__row:hover, .ec-ai__row:focus-visible { transform: translateX(4em); background: #fff; box-shadow: inset 0 0 0 .98em rgba(0, 178, 107, .45), 0 6em 18em -8em rgba(0, 0, 0, .25); outline: none; }
.ec-ai__label { font-size: 12em; line-height: .975; color: var(--ec-primary); white-space: nowrap; }
.ec-ai__insight {
  left: 13em; width: 339em; height: 92em;
  border-radius: 4.38em;
  background: rgba(0, 178, 107, .10);
}
.ec-ai__insight > * { position: absolute; }
.ec-ai__insight-text { margin: 0; font-size: 14em; line-height: 1.571; color: rgba(0, 0, 0, .5); }
.ec-ai__insight-text strong { font-weight: 600; }

.ec-vp__title { font-size: 13.38em; line-height: .77; color: var(--ec-primary); white-space: nowrap; }
.ec-vp__table { height: 139em; }
.ec-vp__table > * { position: absolute; }
.ec-vp__cell { white-space: nowrap; }
.ec-vp__head { font-size: 10.51em; line-height: .98; color: #000; }
.ec-vp__table::before { content: ""; position: absolute; left: 0; top: 27em; width: 240em; height: .88em; background: var(--ec-primary); }
.ec-vp__row { left: 0; width: 240em; height: 28em; border-bottom: .88em solid rgba(0, 0, 0, .10); transition: background-color .25s; cursor: default; }
.ec-vp__row > * { position: absolute; }
.ec-vp__row:hover, .ec-vp__row:focus-visible { background: rgba(0, 178, 107, .06); outline: none; }
.ec-vp__qty { font-size: 8em; line-height: 1.29; color: rgba(0, 0, 0, .5); }
.ec-vp__val { font-size: 8em; line-height: 1.29; color: var(--ec-primary); filter: blur(2px); transition: filter .3s var(--ec-ease-out); }
.ec-vp__row:hover .ec-vp__val, .ec-vp__row:focus-visible .ec-vp__val { filter: blur(0); }

.ec-pm__core {
  border-radius: 7.22em;
  overflow: hidden;
  isolation: isolate;
  background: #004B2D;
  box-shadow: 0 10em 24em -10em rgba(0, 178, 107, .6);
}
.ec-pm__core::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 180deg,
    #FFFFFF 0%, #33C189 12%, #00A261 23%, #00623B 34%, #004B2D 50%, #FFFFFF 100%);
  animation: ecBtnSpin 3s linear infinite;
}
.ec-pm__core-label { position: absolute; inset: 1.4em; border-radius: 6em; background: rgba(0, 178, 107, .9); z-index: 1; }
.ec-pm__core-label > * { position: absolute; }

/* Hero */
.ec-hero {
  background: #000 url("../img/ecommerce/hero-bg.webp") center top / cover no-repeat;
}
.ec-hero__title { font-weight: 600; font-size: 50.6px; line-height: 65.1px; color: #fff; }
@media (max-width: 1279px) { .ec-hero__title { font-size: 44px; line-height: 1.25; } }
@media (max-width: 767px)  { .ec-hero__title { font-size: 34px; line-height: 1.25; } }

/* Testimonial quote marks (Figma: 48px italic, opening inline, closing on its own line) */
.ec-quote-mark { font-size: 48px; line-height: 1; font-style: italic; }
.ec-quote-mark--open { display: inline-block; vertical-align: -0.34em; margin-right: 2px; height: 0.6em; }
.ec-quote-mark--close { display: block; height: 27px; margin-top: 8px; }

.ec-stat-arrow { width: 12px; height: 12px; }
.ec-stat-arrow--down { transform: rotate(180deg); }

/* Tokens */
.ec-page { scroll-behavior: smooth; }

@media (max-width: 639px) {
  .ec-tabbar-sticky { --ec-tab-pad: 8px; }
  .ec-tabbar { height: 56px; padding: 6px 8px; gap: 6px; }
  .ec-tabbar .ec-chip { padding: 8px 14px; font-size: 14px; line-height: 20px; }

  .ec-dtabs__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .ec-dtabs__list::-webkit-scrollbar { display: none; }
  .ec-dtab { flex: 0 0 82vw; scroll-snap-align: start; min-height: 0; padding: 22px; border-radius: 12px; }
  .ec-dtab__title { line-height: 28px; }
  .ec-dtab__rail { bottom: 0; }
  .ec-dpanel { border-radius: 10px; margin-top: 12px; }

  .ec-tile { padding: 10px 4px; gap: 6px; }
  .ec-tile__art { height: 40px; }
  .ec-tile__art img { max-width: 64px !important; max-height: 40px !important; width: auto !important; height: auto !important; }
  .ec-tile__label { font-size: 10px; line-height: 11px; }

  .ec-h2 { text-wrap: balance; }

  /* Case studies: chips scroll full-width, arrows sit under the card, neighbours peek */
  .ec-carousel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: center; margin-top: 28px; }
  .ec-carousel__nav { display: contents; }
  .ec-ribbon { grid-column: 1 / -1; order: 0; justify-content: flex-start; max-width: none; width: 100%; padding: 4px 0; border-radius: 0; scroll-snap-type: x proximity; scroll-padding-inline: 24px; }
  .ec-ribbon__track { margin-inline: auto; padding-inline: 24px; gap: 8px; }
  .ec-chip--dark { padding: 8px 16px; font-size: 14px; line-height: 20px; scroll-snap-align: center; }
  .ec-carousel__viewport { grid-column: 1 / -1; order: 1; margin-top: 16px; }
  .ec-navbtn--prev { order: 2; justify-self: end; margin-top: 20px; }
  .ec-navbtn--next { order: 3; justify-self: start; margin-top: 20px; }
  .ec-navbtn { width: 44px; height: 44px; }
  .ec-carousel { --ec-card-w: calc(100vw - 72px); }
  .ec-carousel__track { gap: 16px; }
  .ec-card { min-height: 0; }
  .ec-card__media { height: 200px; }
  .ec-card > div:first-child { padding: 20px; }
  .ec-card h3 { font-size: 22px; }
  .ec-card dl { row-gap: 16px; }
  .ec-card dt { line-height: 32px; }
  .ec-card ul { grid-template-columns: 1fr; row-gap: 12px; }
  .ec-card__arrow { top: 16px; right: 16px; }

  .ec-builtwith { font-size: 13px; line-height: 20px; }

  .ec-stat-num { font-size: 36px; line-height: 40px; }
  .ec-stat-txt { font-size: 14px; line-height: 20px; }
}

/* Landscape tablets and small laptops (1024–1329px): the desktop grid is on, but narrower than the 1440 frame */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .ec-tabbar { gap: 8px; }
  .ec-tabbar .ec-chip { padding-inline: 16px; }

  .ec-dtab { padding: 22px 20px; min-height: 0; }
  .ec-dtab__title { line-height: 24px; }
  .ec-dtab__body { margin-top: 10px; }

  .ec-cta__quote { width: 300px; }
  .ec-cta__photo { height: 300px; }
  .ec-cta__copy { max-width: calc(100% - 224px); }       /* photo is 241px wide at this height */
  .ec-cta__copy h2 { font-size: 28px; line-height: 38px; }

  .ec-contact-panel { width: 44%; padding-inline: 32px; }
  [data-ec-form] .custom-submit-btn { max-width: 100%; }
}
@media (min-width: 1280px) and (max-width: 1329.98px) {
  .ec-cta__copy { max-width: calc(100% - 323px); }       /* 340px photo; from 1330px the banner is at its 880px maximum */
}
@media (min-width: 1024px) and (max-width: 1329.98px) {
  .ec-cta__copy h2 { text-wrap: balance; }
  .ec-cta__copy h2 br { display: none; }
  /* icons scale with the tile so a two-line label still fits inside the square */
  .ec-platform-grid .ec-tile__art { width: 100%; height: min(54px, 36cqw); }
  .ec-platform-grid .ec-tile__art img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-gline, .ec-ticker__col { animation: none !important; }
  .ec-carousel__track, .ec-ribbon__track, .ec-dpanel__img { transition: none !important; }
  .ec-dash__card { animation: none; }
  .ec-dash__bar-target, .ec-dash__bar-value, .ec-dash__menu, .ec-dash__tip, .ec-dash__tab::after, .ec-dash__caret { transition: none !important; }
  .ec-dash__bar:hover .ec-dash__bar-target, .ec-dash__bar:hover .ec-dash__bar-value { transform: none; }
}
