/* Code-drawn infographic visuals for AI-employee feature cards (aip-ig-*).
   Loaded only on ai-employees pages via essentials/aip-style.html.
   All motion is pure CSS; reduced-motion kills it at the bottom. */
.aip-ig {
  height: 100%;
  display: grid;
  place-items: center;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left; }

/* White UI card (call + transfer) */
.aip-ig-card {
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  width: min(200px, 92%);
  box-shadow: 0 10px 24px rgba(24, 28, 45, 0.1);
  text-align: center; }

.aip-ig-card.aip-ig-tfr {
  width: 240px; }

.aip-ig-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #171a20;
  line-height: 1.2; }

.aip-ig-state {
  font-size: 9.5px;
  color: #82879a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 3px 0 8px; }

.aip-ig-state i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #35c46f;
  animation: aipBlink 1.6s infinite; }

/* Call screen: centred waveform, timer, round control buttons */
.aip-ig-wave {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  height: 32px; }

.aip-ig-wave i {
  width: 2.5px;
  height: 7px;
  background: #f2aebf;
  border-radius: 2px;
  animation: aipWave 1.1s ease-in-out infinite alternate; }

.aip-ig-wave i:nth-child(3n) {
  height: 16px;
  background: #ec8aa2; }

.aip-ig-wave i:nth-child(4n) {
  height: 24px;
  background: #e05c7c; }

.aip-ig-wave i:nth-child(7n) {
  height: 30px;
  background: #d23f5f; }

.aip-ig-wave i:nth-child(2n) {
  animation-delay: -0.25s; }

.aip-ig-wave i:nth-child(3n) {
  animation-delay: -0.55s; }

.aip-ig-wave i:nth-child(4n) {
  animation-delay: -0.8s; }

.aip-ig-wave i:nth-child(5n) {
  animation-delay: -0.4s; }

.aip-ig-timer {
  font-size: 9px;
  color: #9aa0b0;
  margin: 4px 0 10px; }

.aip-ig-cbtns {
  display: flex;
  justify-content: center;
  gap: 9px; }

.aip-ig-cbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: #82879a; }

.aip-ig-circ {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f1f2f6;
  display: grid;
  place-items: center;
  color: #4c5160;
  font-size: 14px; }

.aip-ig-circ.aip-ig-end {
  background: #ee6a8e;
  color: #fff; }

.aip-ig-circ.aip-ig-end svg {
  transform: rotate(135deg); }

.aip-ig-mic {
  width: 7px;
  height: 10px;
  border: 1.5px solid #4c5160;
  border-radius: 4px;
  position: relative; }

.aip-ig-mic::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 16px;
  height: 1.5px;
  background: #4c5160;
  transform: rotate(-45deg); }

.aip-ig-pad {
  width: 12px;
  height: 12px;
  background-image: radial-gradient(circle, #4c5160 1.2px, transparent 1.45px);
  background-size: 4px 4px; }

/* Appointment rows: coloured time circle, green status, check */
.aip-ig-appts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(205px, 92%); }

.aip-ig-appt {
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 18px rgba(24, 28, 45, 0.09);
  animation: aipFloat 3.4s ease-in-out infinite; }

.aip-ig-appt:nth-child(2) {
  animation-delay: -1.1s; }

.aip-ig-appt:nth-child(3) {
  animation-delay: -2.2s;
  background: #fff8eb; }

.aip-ig-when {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15; }

.aip-ig-when b {
  font-size: 7px; }

.aip-ig-when svg {
  width: 16px;
  height: 16px; }

.aip-ig-w1 {
  background: #ee7d70; }

.aip-ig-w2 {
  background: #8b7ff0; }

.aip-ig-w3 {
  background: #f59e0b; }

.aip-ig-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column; }

.aip-ig-meta b {
  font-size: 10.5px;
  font-weight: 700;
  color: #171a20;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }

.aip-ig-meta i {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  color: #2fae62; }

.aip-ig-chk {
  color: #35c46f;
  font-size: 17px;
  display: flex;
  flex: none; }

.aip-ig-appt:nth-child(3) .aip-ig-chk {
  animation: aipBlink 1.8s infinite; }

/* Transfer: contact rows with initial badges + pill actions */
.aip-ig-tfr .aip-ig-person {
  display: flex;
  align-items: center;
  gap: 7px;
  width: calc(100% + 28px);
  margin-inline: -14px;
  padding: 5px 14px;
  border-radius: 0;
  text-align: left;
  animation: aipRow 4.8s infinite; }

.aip-ig-tfr .aip-ig-person:nth-child(4) {
  animation-delay: 1.2s; }

.aip-ig-tfr .aip-ig-person:nth-child(5) {
  animation-delay: 2.4s; }

.aip-ig-tfr .aip-ig-person:nth-child(6) {
  animation-delay: 3.6s; }

.aip-ig-init {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  display: grid;
  place-items: center; }

.aip-ig-i1 {
  background: #f0a13e; }

.aip-ig-i2 {
  background: #5aa7f0; }

.aip-ig-i3 {
  background: #8b7ff0; }

.aip-ig-person b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 600;
  color: #171a20;
  flex: 1;
  white-space: nowrap; }

.aip-ig-status {
  padding: 2px 5px;
  font-size: 7.5px;
  line-height: 1.2; }

.aip-ig-acts {
  display: flex;
  gap: 7px;
  margin-top: 8px; }

.aip-ig-acts b {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 5px 0;
  font-size: 9.5px;
  font-weight: 700; }

.aip-ig-go {
  background: #35c46f;
  color: #fff;
  animation: aipGlow 4.8s infinite; }

.aip-ig-no {
  background: #f1f2f6;
  color: #4c5160; }

/* Notification cards: tinted grounds, rounded-square icon, timestamp */
.aip-ig-notifs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(205px, 92%); }

.aip-ig-notif {
  border-radius: 14px;
  padding: 10px 11px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  animation: aipSway 5s ease-in-out infinite alternate; }

.aip-ig-n1 {
  background: #edeaf9; }

.aip-ig-n2 {
  background: #e6f4ea;
  animation-delay: -1.6s; }

.aip-ig-nicon {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px; }

.aip-ig-n1 .aip-ig-nicon {
  background: #7c66e4; }

.aip-ig-n2 .aip-ig-nicon {
  background: #46bd68; }

.aip-ig-nbody {
  font-size: 9px;
  color: #5c616c;
  line-height: 1.35;
  min-width: 0; }

.aip-ig-nbody b {
  display: block;
  font-size: 10.5px;
  color: #171a20;
  line-height: 1.25;
  margin-bottom: 1px; }

.aip-ig-nbody i {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 8.5px;
  margin-top: 3px; }

.aip-ig-n1 .aip-ig-nbody i {
  color: #7c66e4; }

.aip-ig-n2 .aip-ig-nbody i {
  color: #2fae62; }

/* Compact email plan: connected single-line steps, matching the product flow. */
.aip-ig-sequence {
  position: relative;
  display: grid;
  gap: 9px;
  margin-top: 9px; }

.aip-ig-sequence::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 14px;
  width: 2px;
  background: #dddfe7; }

.aip-ig-seq-pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px 6px 5px;
  border-radius: 999px;
  background: #f4f1fb;
  text-align: left; }

.aip-ig-seq-pill span {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #7c66e4;
  color: #fff;
  font-size: 13px; }

.aip-ig-seq-pill b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #171a20;
  font-size: 9.5px;
  font-weight: 700; }

/* Problem-to-solution cards: scroll progress is written to a CSS variable by
   the small native controller in aip-anim.js. Data attributes keep this
   behaviour independent of the legacy aip class system. */
[data-flip-heading] {
  will-change: opacity; }

[data-flip-description] {
  will-change: opacity; }

[data-flip-card] {
  perspective: 1000px; }

[data-flip-inner] {
  position: relative;
  min-height: clamp(210px, 15vw, 245px);
  transform: rotateY(calc(var(--flip-progress, 0) * 180deg));
  transform-style: preserve-3d;
  will-change: transform; }

[data-flip-face] {
  position: absolute;
  inset: 0;
  min-height: clamp(210px, 15vw, 245px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; }

[data-flip-front] {
  transform: translateZ(1px); }

[data-flip-back] {
  transform: rotateY(180deg) translateZ(1px); }

/* Scroll showcase: contained visuals scroll on the left while the matching
   text stays centred on the right. Shopify's sequential-product-info model
   uses intersection ratios for visuals and a 500ms opacity-only copy change. */
.aip-showcase {
  display: flex;
  gap: clamp(48px, 6vw, 96px);
  align-items: flex-start; }

.aip-show-visuals {
  display: none; }

.aip-show-tblock {
  padding: 26px 0;
  max-width: 540px;
  gap: clamp(18px, 2vw, 24px); }

.aip-show-tblock .aip-solution-icon {
  margin-bottom: 0 !important; }

.aip-show-tblock h3 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance; }

.aip-show-tblock > p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.5; }

.aip-show-ticks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0; }

.aip-show-ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px; }

.aip-show-ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #2fae62;
  font-weight: 700; }

.aip-show-mvis {
  display: grid;
  place-items: center;
  margin-top: 22px;
  min-height: 250px; }

@media (min-width: 992px) and (orientation: landscape) {
  .aip-showcase {
    padding-top: clamp(86px, 13vh, 130px); }
  .aip-show-mvis {
    display: none; }
  .aip-show-visuals {
    display: block;
    flex: 1 1 50%;
    min-width: 0; }
  .aip-show-vblock {
    min-height: 68vh;
    margin-bottom: clamp(36px, 6vh, 64px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.075), rgba(var(--accent-rgb), 0.025)); }
  .aip-show-vblock:last-child {
    margin-bottom: 0; }
  .aip-show-vblock .aip-ig {
    transform: scale(1.45);
    transform-origin: center; }
  .aip-show-stage {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    align-self: stretch; }
  .aip-show-pin {
    position: sticky;
    top: calc(50vh - 220px);
    height: 440px; }
  .aip-show-tblock {
    position: absolute;
    inset: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity; }
  .aip-show-tblock .aip-show-ticks {
    margin-top: 0; }
  .aip-show-tblock .aip-show-ticks li:last-child {
    margin-bottom: 0; }
  .aip-show-tblock:not(:first-child) {
    opacity: 0; } }

@media (min-width: 1200px) {
  .aip-show-vblock .aip-ig {
    transform: scale(1.55); } }

@keyframes aipWave {
  from {
    transform: scaleY(0.35); }
  to {
    transform: scaleY(1); } }

@keyframes aipBlink {
  50% {
    opacity: 0.25; } }

@keyframes aipFloat {
  0%, 100% {
    transform: translateY(0); }
  50% {
    transform: translateY(-3px); } }

@keyframes aipRow {
  0%, 30%, 100% {
    background: transparent; }
  6%, 24% {
    background: #f1f2f6; } }

@keyframes aipGlow {
  0%, 30%, 100% {
    filter: brightness(1); }
  10%, 20% {
    filter: brightness(1.12); } }

@keyframes aipSway {
  from {
    transform: translateY(0); }
  to {
    transform: translateY(-2.5px); } }

@media (prefers-reduced-motion: reduce) {
  .aip-ig, .aip-ig * {
    animation: none !important; }
  [data-flip-heading], [data-flip-description], [data-flip-inner] {
    will-change: auto; } }

/* How-it-works scroll showcase for AI-employee pages: dark-section overrides
   for the shared .aip-show-* mechanics plus the code-drawn step scenes.
   Scenes are bright white cards so they pop on the dark section. Every future
   employee step scene belongs in this file. */
.aip-hiw .aip-show-vblock {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  transition: opacity .3s linear; }

.aip-hiw .aip-solution-icon {
  background: rgba(255, 255, 255, 0.14); }

.aip-hiw .aip-step-time {
  align-self: flex-start;
  margin-top: 0; }

.aip-hiw-scene {
  width: min(500px, 92%);
  font-size: 14px; }

.aip-hiw-card {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 18px;
  padding: 22px 24px;
  color: #14161a;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4); }

.aip-hiw-card + .aip-hiw-card {
  margin-top: 14px; }

.aip-hiw-ctitle {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px; }
  .aip-hiw-ctitle i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent); }

.aip-hiw-skel {
  height: 9px;
  border-radius: 5px;
  background: rgba(16, 24, 40, 0.09);
  margin-top: 9px; }
  .aip-hiw-skel.w45 {
    width: 45%; }
  .aip-hiw-skel.w60 {
    width: 60%; }
  .aip-hiw-skel.w80 {
    width: 80%; }

.aip-hiw-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-top: 12px; }
  .aip-hiw-cal span {
    height: 42px;
    border-radius: 10px;
    background: #f3f1f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6a6e77; }
  .aip-hiw-cal .busy {
    background: #e4e2e7;
    color: #a3a7af;
    text-decoration: line-through; }
  .aip-hiw-cal .booked {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    animation: aipHiwPulse 2.4s ease-in-out infinite; }

@keyframes aipHiwPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% {
    box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } }

.aip-hiw-fwd {
  display: flex;
  align-items: center;
  gap: 14px; }
  .aip-hiw-fwd .aip-hiw-card {
    flex: 1;
    margin: 0;
    text-align: center;
    font-weight: 700; }
  .aip-hiw-fwd small {
    display: block;
    color: #6a6e77;
    font-size: 12px;
    font-weight: 400;
    margin-top: 5px; }

.aip-hiw-arrow {
  flex: 0 0 58px;
  height: 3px;
  position: relative;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); }
  .aip-hiw-arrow::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--accent);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent; }

.aip-hiw-prow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08); }

.aip-hiw-pname {
  flex: 1;
  font-weight: 600; }

.aip-hiw-price {
  font-weight: 800;
  font-variant-numeric: tabular-nums; }

.aip-hiw-stock {
  font-size: 11px;
  font-weight: 700;
  color: #1f9d57;
  background: rgba(47, 174, 98, 0.13);
  padding: 3px 9px;
  border-radius: 999px; }

.aip-hiw-added {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  color: #14161a;
  font-weight: 600; }
  .aip-hiw-added b {
    color: var(--accent);
    margin-right: 6px; }

.aip-hiw-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08); }
  .aip-hiw-row:last-child {
    border-bottom: 0; }
  .aip-hiw-row .aip-hiw-stock {
    margin-left: auto; }

.aip-hiw-live {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #24b26b;
  animation: aipBlink 1.6s ease-in-out infinite; }

.aip-hiw-wave {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 20px;
  margin-left: auto; }
  .aip-hiw-wave i {
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: aipWave .9s ease-in-out infinite alternate; }
  .aip-hiw-wave i:nth-child(1) {
    height: 40%; }
  .aip-hiw-wave i:nth-child(2) {
    height: 90%;
    animation-delay: .15s; }
  .aip-hiw-wave i:nth-child(3) {
    height: 60%;
    animation-delay: .3s; }
  .aip-hiw-wave i:nth-child(4) {
    height: 100%;
    animation-delay: .45s; }
  .aip-hiw-wave i:nth-child(5) {
    height: 50%;
    animation-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  .aip-hiw-cal .booked, .aip-hiw-live, .aip-hiw-wave i {
    animation: none !important; } }
