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

/* Gen2 · 06 EliseCRM (Figma 642:57379, stage 642:57617; reply from 618:10310; mobile 642:139740). */

.g2c {
  width: 100%; /* fills its Webflow container, like the prototype's .wrap (no own max-width) */
  margin: 0 auto;
  box-sizing: border-box;
  font-family: inter-variable, Inter, system-ui, sans-serif;
  font-variation-settings: "opsz" 32;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  color: #0e0d0c;
}
.g2c *,
.g2c *::before,
.g2c *::after {
  box-sizing: border-box;
}
.g2c img {
  display: block;
  flex: none;
  max-width: none;
}

/* Heading (642:57380 / mobile 667:141154): subtitle is type/body-primary; mobile stays centred */
.g2c .sh__sub {
  color: #3f3e3c;
  font-feature-settings: "ss07" 1, "ss08" 1;
}
@media (max-width: 767px) {
  .g2c .sh {
    align-items: center;
    text-align: center;
    gap: 12px; /* prototype: 12 between title and subtitle */
  }
  .g2c .sh__title + .sh__sub {
    margin-top: 0;
  }
  .g2c .sh__sub {
    font-size: 18px;
  }
}

/* ── Stage (prototype .crm2): 600 tall (470 mobile), radius 12, inset 0.5px border.
   Background per the designer's gradients package §4:
   #f6f4f2 url(crm-bg.jpg) center / cover no-repeat (the image is set inline from the TSX). */
.g2c__stage {
  position: relative;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background-color: #f6f4f2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.g2c__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}
.g2c__probe {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Window (Figma "Managers" 642:57619) ──────────────────── */
.g2c__win {
  position: absolute;
  top: 64px;
  left: 64px;
  right: 64px;
  bottom: -24px; /* runs off the stage so its bottom edge never shows */
  display: flex;
  flex-direction: column;
  padding: 0 4px;
  border-radius: 16px 16px 0 0;
  background: rgba(0, 0, 0, 0.04);
}
.g2c__lights {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 12px;
}
.g2c__lights i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.g2c__app {
  flex: 1 0 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.04)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.04));
}

/* ── Task list (642:57626) ────────────────────────────────── */
.g2c__list {
  position: relative;
  flex: none;
  width: 256px;
  display: flex;
  flex-direction: column;
  background: #fdfcfb;
  border-right: 0.5px solid #e6e5e3;
  overflow: hidden;
}
.g2c__list-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 12px;
}
.g2c__list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.g2c__list-title {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.48px;
  font-feature-settings: "ss07" 1, "ss08" 1;
}
.g2c__list-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.g2c__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 1000px;
  background: rgba(255, 227, 213, 0.6);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  font-feature-settings: "salt" 1;
  color: #f25530;
}
.g2c__filters {
  position: relative;
  display: flex;
  gap: 4px;
  width: 264px; /* runs past the sidebar edge and is clipped, as in Figma */
  height: 29px;
}
.g2c__filters::after {
  content: "";
  position: absolute;
  left: 81px;
  top: -10px;
  width: 154px;
  height: 49px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 87.066%);
  pointer-events: none;
}
.g2c__filter {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  border: 0.5px solid #e6e5e3;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.24px;
  font-feature-settings: "ss07" 1;
  white-space: nowrap;
}
.g2c__tasks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.g2c__task {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-bottom: 0.5px solid #e6e5e3;
}
.g2c__task--on {
  background: #f6f4f2;
  border-top: 0.5px solid #e6e5e3;
}
.g2c__task:last-child {
  border-bottom: 0;
}
.g2c__task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 15px;
}
.g2c__task-label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.24px;
  font-feature-settings: "ss07" 1, "ss08" 1;
  color: #7a7977;
  white-space: nowrap;
}
.g2c__task-bar {
  display: block;
  width: 32px;
  height: 6px;
  border-radius: 100px;
  background: #f0eeec;
}
.g2c__task-name {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.28px;
  font-feature-settings: "ss07" 1, "ss08" 1;
  white-space: nowrap;
}
/* Figma "Blur" 642:57686: the list fades to white from the 3rd row down */
.g2c__list-fade {
  position: absolute;
  left: 0;
  right: 0;
  top: 224px;
  height: 278px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 87.066%);
  pointer-events: none;
}

/* ── Conversation pane (642:57687) ────────────────────────── */
.g2c__main {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.g2c__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-bottom: 0.5px solid #e6e5e3;
}
.g2c__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.g2c__who {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 37px;
  margin-left: 4px; /* 12px from the avatar (row gap is 8) */
}
.g2c__who-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g2c__name {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.28px;
  font-feature-settings: "ss07" 1, "ss08" 1;
  white-space: nowrap;
}
.g2c__chip {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 8px;
  border-radius: 1000px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  font-feature-settings: "salt" 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.g2c__chip + .g2c__chip {
  margin-left: -4px; /* chips sit 4px apart */
}
.g2c__chip--prospect {
  background: #f6f4f2;
  color: #7a7977;
}
.g2c__chip--toured {
  background: rgba(208, 249, 232, 0.6);
  color: #00b080;
}
.g2c__prop {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.24px;
  font-feature-settings: "ss07" 1, "ss08" 1;
  color: #7a7977;
}
.g2c__head-actions {
  flex: none;
  display: flex;
  gap: 8px;
}

/* ── Messages (642:57706) ─────────────────────────────────── */
.g2c__msgs {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 20px;
  border-bottom: 0.5px solid #e6e5e3;
  overflow: hidden;
}
.g2c__msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.g2c__msg--in {
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.g2c__msg--in.is-on {
  opacity: 1;
  transform: none;
}
.g2c__msg--out {
  align-items: flex-end;
}
.g2c__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  font-feature-settings: "ss07" 1, "ss08" 1;
  color: #7a7977;
  white-space: nowrap;
}
.g2c__msg--out .g2c__meta {
  opacity: 0;
  transition: opacity 0.3s;
}
.g2c__msg--out .g2c__meta.is-on {
  opacity: 1;
}
.g2c__bubble {
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 5px;
  background: #f6f4f2;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.28px;
  font-feature-settings: "ss07" 1;
}

/* Reply slot: the reply is always laid out (so nothing shifts); typing dots sit on top. */
.g2c__reply-slot {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.g2c__reply {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 480px;
  background: rgba(242, 240, 255, 0.7);
  opacity: 0;
  transition: opacity 0.25s;
}
.g2c__reply.is-on {
  opacity: 1;
}
.g2c__para {
  margin: 0;
}
.g2c__link {
  color: #6b4fff;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}
.g2c__w {
  opacity: 0;
  transition: opacity 0.2s;
}
.g2c__reply.is-on .g2c__w {
  opacity: 1;
  transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: calc(var(--i) * 34ms);
}
.g2c__typing {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 16px;
  border-radius: 5px;
  background: rgba(242, 240, 255, 0.7);
  opacity: 0;
  transform: scale(0.9);
  transform-origin: 100% 0;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.g2c__typing.is-on {
  opacity: 1;
  transform: none;
}
.g2c__typing i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a093fd;
  animation: g2c-dot 1.1s ease-in-out infinite;
}
.g2c__typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.g2c__typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes g2c-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* ── Composer (642:57738) ─────────────────────────────────── */
.g2c__composer {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 140px;
  /* prototype .crm2-comp: +24 at the bottom, the part of the window that runs off the stage */
  padding: 20px 20px 44px;
}
.g2c__composer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.g2c__channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.24px;
  font-feature-settings: "ss07" 1;
  color: #7a7977;
}
.g2c__placeholder {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.28px;
  font-feature-settings: "ss07" 1;
  color: #a9a8a6;
}
.g2c__composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.g2c__tools {
  display: flex;
  gap: 8px;
}
.g2c__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.g2c__dismiss,
.g2c__send {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.24px;
  font-feature-settings: "ss07" 1;
}
.g2c__dismiss {
  color: #7a7977;
}
.g2c__send {
  background: #6b4fff;
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .g2c__win {
    top: 40px;
    left: 24px;
    right: 24px;
  }
}
@media (max-width: 900px) {
  .g2c__reply {
    width: 100%;
  }
}

/* Figma mobile 642:139740, radius 10; v120: 470 tall now that the composer is gone */
@media (max-width: 767px) {
  .g2c__stage {
    height: 470px;
    border-radius: 10px;
  }
  .g2c__win {
    top: 24px;
    left: 24px;
    right: 24px;
  }
  .g2c__list,
  .g2c__composer,
  .g2c__head-actions,
  .g2c__chip--prospect {
    display: none;
  }
  .g2c__chip + .g2c__chip {
    margin-left: 0;
  }
  .g2c__head {
    padding: 16px;
  }
  .g2c__msgs {
    padding: 16px;
    border-bottom: 0;
  }
  .g2c__bubble {
    padding: 12px 14px;
    font-size: 12px;
    letter-spacing: -0.12px;
  }
  .g2c__typing {
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g2c__msg--in,
  .g2c__w,
  .g2c__reply,
  .g2c__typing,
  .g2c__meta,
  .g2c__reply.is-on .g2c__w {
    transition: none !important;
  }
  .g2c__typing i {
    animation: none;
  }
}

