/* SectionHeading — 48px .com_2027 section headline (Headline 48 text style). */

.sh {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-bottom: 48px; /* space to the section content below */
  box-sizing: border-box;
  font-family: inter-variable, Inter, system-ui, sans-serif;
  font-variation-settings: "opsz" 32; /* Figma renders Inter Variable at Display optical size */
  -webkit-font-smoothing: antialiased;
}
.sh--center {
  align-items: center;
  text-align: center;
}
.sh--left {
  align-items: flex-start;
  text-align: left;
}

.sh__title {
  margin: 0;
  font-size: clamp(34px, calc(3.34vw + 6px), 48px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-feature-settings: "ss07" 1, "ss08" 1;
  color: #0e0d0c;
}
.sh--dark .sh__title {
  color: #fff;
}

.sh__title + .sh__sub {
  margin-top: -8px; /* 12px from the headline (flex gap is 20) */
}
.sh__sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.36px;
  font-feature-settings: "ss07" 1;
  color: #7a7977;
}
.sh--dark .sh__sub {
  color: #dddcda;
}

.sh__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  font-feature-settings: "salt" 1;
  text-transform: uppercase;
  color: #3f3e3c;
}
.sh--dark .sh__eyebrow {
  color: #dddcda;
}
.sh__marker {
  display: block;
  width: 8px;
  height: 8px;
  background: #6b4fff;
}

/* Figma mobile (204:14193): section headings are 36px and left-aligned */
@media (max-width: 480px) {
  .sh,
  .sh--center {
    align-items: flex-start;
    text-align: left;
  }
  .sh {
    padding-bottom: 32px;
  }
  .sh__title {
    font-size: 36px;
    letter-spacing: -1.08px;
    max-width: none !important;
  }
  .sh__sub {
    font-size: 16px;
  }
}

/* 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;
  }
}

/* Gen2Stories — handoff 09 (Figma 642:58325 desktop, 667:141205 mobile). */

.g2st {
  width: 100%;
  box-sizing: border-box;
  padding: 0; /* vertical spacing comes from the Webflow section */
  font-family: inter-variable, Inter, system-ui, sans-serif;
  font-variation-settings: "opsz" 32;
  -webkit-font-smoothing: antialiased;
  color: #0e0d0c;
}

/* Header row (Figma 642:58326): 420-wide title left, arrows bottom-right */
.g2st-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 48px;
}
.g2st-head .sh {
  padding-bottom: 0;
  width: auto;
}
/* Figma desktop has no subtitle; mobile does (667:141208) */
.g2st--sub-mob .sh__sub {
  display: none;
}

.g2st-arrows {
  display: flex;
  gap: 6px;
}
.g2st-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #dddcda;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.g2st-arrow:hover {
  background: #f6f4f2;
  border-color: #c9c8c6;
}
.g2st-arrow:focus-visible,
.g2st-seg:focus-visible,
.g2st-play:focus-visible {
  outline: 2px solid #6b4fff;
  outline-offset: 2px;
}
.g2st-arrow__icon {
  display: block;
  width: 24px;
  height: 24px;
}
.g2st-arrow__icon--prev {
  transform: rotate(180deg);
}
.g2st-arrows--mob {
  display: none;
}

/* Row (Figma 642:58339): copy column (quote top, name bottom) + 711×400 video */
.g2st-row {
  display: grid;
  grid-template-columns: minmax(0, 401fr) minmax(0, 711fr);
  gap: 48px;
  align-items: stretch;
}
.g2st-copy,
.g2st-quote-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.g2st-quote-wrap {
  flex: 1;
}
.g2st-quote {
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.g2st-quote__text {
  max-width: 330px;
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.66px;
  font-feature-settings: "ss07" 1, "ss08" 1;
  color: #0e0d0c;
}
.g2st-quote__who {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.36px;
  font-feature-settings: "ss07" 1;
}
.g2st-quote__name {
  color: #0e0d0c;
}
.g2st-quote__role {
  white-space: pre-line;
  color: #3f3e3c;
}

.g2st-video {
  position: relative;
  aspect-ratio: 711 / 400;
  border-radius: 12px;
  overflow: hidden;
  background: #1c1b1a;
}
.g2st-poster {
  position: absolute;
  inset: 0;
}
.g2st-poster__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Play (Figma 642:58348 "nav-dark"): 48px ring, 24px from the bottom-left */
.g2st-play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: block;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}
.g2st-play img {
  display: block;
  width: 100%;
  height: 100%;
}
.g2st-play--static {
  cursor: default;
}
.g2st-video:hover .g2st-play:not(.g2st-play--static) {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}

/* Progress (Figma 642:58350, prototype .st3-pg): one 12px-tall button per story, 12 apart, each a
   1px #DDDCDA track with a 1px #6B4FFF fill at its middle. The row has real height (no negative
   margins), so it is never a 1px box that a reveal/clip can lose. */
.g2st-progress {
  display: flex;
  gap: 12px;
  margin-top: 48px;
}
.g2st-seg {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.g2st-seg:focus-visible {
  outline: 2px solid #6b4fff;
  outline-offset: 2px;
}
.g2st-seg::before,
.g2st-seg__fill {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}
.g2st-seg::before {
  background: #dddcda;
}
.g2st-seg__fill {
  display: block;
  background: #6b4fff;
  transform-origin: 0 50%;
}

/* Lightbox */
.g2st-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  box-sizing: border-box;
  background: #000;
}
.g2st-lb__frame {
  width: min(100%, calc((100vh - 128px) * 16 / 9), 1280px);
  aspect-ratio: 16 / 9;
}
.g2st-lb__frame iframe,
.g2st-lb__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.g2st-lb__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.g2st-lb__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 761px) {
  /* Figma 667:141205: everything stacked 32 apart, centred header */
  .g2st {
    padding: 0;
  }
  .g2st-head {
    justify-content: center;
    padding-bottom: 32px;
  }
  .g2st-head .sh,
  .g2st-head .sh--left {
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .g2st-head .sh__title {
    max-width: 315px !important;
  }
  .g2st-head .sh__title + .sh__sub {
    margin-top: 0;
  }
  .g2st--sub-mob .sh__sub {
    display: block;
  }
  .g2st-head .sh__sub {
    font-size: 18px;
    color: #3f3e3c;
  }
  .g2st-head__arrows {
    display: none;
  }
  /* handoff 09: arrows under the quote, left-aligned, 40px circles with 20px icons */
  .g2st-arrows--mob {
    display: flex;
    gap: 8px;
    margin-top: 24px;
  }
  .g2st-arrow {
    width: 40px;
    height: 40px;
  }
  .g2st-arrow__icon {
    width: 20px;
    height: 20px;
  }
  .g2st-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .g2st-video {
    order: -1;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }
  .g2st-quote-wrap {
    min-height: 194px; /* tallest default story (Figma 671:141267), so the page doesn't jump */
  }
  .g2st-quote {
    justify-content: flex-start;
    gap: 16px;
  }
  .g2st-quote__text {
    max-width: none;
    font-size: 20px;
    letter-spacing: -0.4px;
  }
  .g2st-quote__who {
    font-size: 16px;
    letter-spacing: -0.32px;
  }
  .g2st-play {
    left: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  .g2st-progress {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g2st-play {
    transition: none;
  }
}

