/* Gen2 shared primitives: chips, phone frame, NEW tag, button. */

/* ── Chips (handoff 02-hero) ─────────────────────────────── */
.g2-chipwrap {
  display: inline-flex;
  position: relative;
}
.g2-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 6px;
  border-radius: 3px;
  box-sizing: border-box;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  font-feature-settings: "salt" 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.g2-chip--sm {
  height: 18px;
  font-size: 10px;
  padding: 0 5px;
}
.g2-chip--blue { background: #f4faff; color: #1475e8; }
.g2-chip--green { background: #eefdf8; color: #00b080; }
.g2-chip--neutral { background: #f6f4f2; color: #0e0d0c; }
.g2-chip--pink { background: #fef0fa; color: #d42aaf; }
.g2-chip--sky { background: #e5f2ff; color: #1475e8; }
.g2-chip--purple { background: #f2f0ff; color: #6b4fff; }
.g2-chip--orange { background: #fff3eb; color: #e0561a; }

.g2-spin {
  flex: none;
  animation: g2-spin 0.9s linear infinite;
}
@keyframes g2-spin {
  to { transform: rotate(360deg); }
}

/* ── Phone frame ─────────────────────────────────────────── */
.g2-phone-box {
  position: relative;
  flex: none;
}
.g2-phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  transform-origin: 0 0;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 52px;
  background: #1c1b1a;
  box-shadow: 0 30px 60px -20px rgba(14, 13, 12, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.g2-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: #fff;
}
.g2-phone__notch {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 20px;
  background: #0e0d0c;
}

/* ── NEW tag with travelling border beam ─────────────────── */
@property --g2-beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.g2-new {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 8px;
  border-radius: 3px;
  box-sizing: border-box;
  border: 1px solid #dddcda;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  font-feature-settings: "salt" 1;
  color: #6b4fff;
  vertical-align: middle;
}
.g2-new__beam {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--g2-beam),
    transparent 0deg,
    #c1bafe 30deg,
    #c1bafe 60deg,
    #99ceff 90deg,
    transparent 91deg 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: g2-beam 2.8s linear infinite;
  pointer-events: none;
}
@keyframes g2-beam {
  to { --g2-beam: 360deg; }
}

/* ── Primary button ──────────────────────────────────────── */
.g2-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 4px;
  background: #6b4fff;
  color: #fff;
  font-family: inter-variable, Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  font-feature-settings: "ss07" 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.15s;
}
.g2-btn:hover { background: #5a3ff0; }
.g2-btn:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
  .g2-spin,
  .g2-new__beam {
    animation: none;
  }
}

/* Gen2Customers — handoff 02b (logo grid below the hero). No section padding/background:
   the Webflow "main padding section" provides them. */

.g2cu {
  display: flex;
  flex-direction: column;
  gap: 48px; /* H2 → grid */
  width: 100%;
  box-sizing: border-box;
  font-family: inter-variable, Inter, system-ui, sans-serif;
  font-variation-settings: "opsz" 32;
  -webkit-font-smoothing: antialiased;
}

.g2cu__title {
  margin: 0 auto;
  max-width: 820px;
  /* Final source (.cu3-h): 22px / 1.3, −0.02em (20px on mobile) */
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-feature-settings: "ss07" 1, "ss08" 1;
  color: #0e0d0c;
  text-align: center;
  text-wrap: balance;
}

/* Hairline grid: the 1px gaps show the #dddcda background; cells sit on #fdfcfb. */
.g2cu__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #dddcda;
  border-radius: 0;
  background: #dddcda;
}
.g2cu__item {
  display: flex;
  min-width: 0;
}

.g2cu__cell {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden; /* clips the reveal rise */
  background: #fdfcfb;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.g2cu__cell:hover,
.g2cu__cell--link:focus-visible {
  background: #f6f4f2;
}
.g2cu__cell--link:focus-visible {
  outline: 2px solid #704eff;
  outline-offset: -2px;
  z-index: 1;
}

/* 40 + 32 logo row + 40 = 112. Side padding keeps logos clear of the 32px arrow
   (16 + 32 + 16 = 64): ~141px inner width at 1440. */
.g2cu__inner {
  position: relative;
  height: 100%;
  padding: 40px 64px;
  box-sizing: border-box;
}
.g2cu__row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}
.g2cu__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}

/* Case-study arrow (Figma 874:180245): #f6f4f2 → #f0eeec, icon #7a7977 → #0e0d0c. No movement. */
.g2cu__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f6f4f2;
  transition: background-color 0.3s ease;
}
.g2cu__arrow img {
  grid-area: 1 / 1;
  display: block;
  width: 16px;
  height: 16px;
}
.g2cu__arrow-hover {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.g2cu__cell--link:hover .g2cu__arrow,
.g2cu__cell--link:focus-visible .g2cu__arrow {
  background: #f0eeec;
}
.g2cu__cell--link:hover .g2cu__arrow-hover,
.g2cu__cell--link:focus-visible .g2cu__arrow-hover {
  opacity: 1;
}

@media (max-width: 1000px) {
  .g2cu__inner {
    padding-inline: 40px;
  }
}

@media (max-width: 767px) {
  .g2cu {
    gap: 32px;
  }
  .g2cu__title {
    font-size: 20px;
  }
  .g2cu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* 32 + 32 + 32 = 96 */
  .g2cu__inner {
    padding: 32px 24px;
  }
  .g2cu__arrow {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g2cu__cell,
  .g2cu__arrow,
  .g2cu__arrow-hover {
    transition: none;
  }
}

