/* SMART Business System: three editorial cards that stack during desktop scroll. */
.smart-business-stack {
  position: relative;
  --smart-business-nav-height: 92px;
  --smart-business-card-height: min(720px, calc(100svh - var(--smart-business-nav-height) - 40px));
  --smart-business-card-top: calc(var(--smart-business-nav-height) + ((100svh - var(--smart-business-nav-height) - var(--smart-business-card-height)) / 2));
  margin-top: clamp(72px, 9vw, 132px);
  padding-bottom: clamp(48px, 7vw, 96px);
  font-family: inherit;
}

.smart-business-stack__head {
  display: grid;
  justify-items: center;
  max-width: 820px;
  margin: 0 auto clamp(38px, 5vw, 68px);
  text-align: center;
}

.smart-business-stack__head h3 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: var(--text);
  font-size: clamp(2.15rem, 4.1vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.smart-business-stack__title-accent {
  color: var(--accent);
}

.smart-business-stack__head > p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.smart-business-stack__cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.smart-business-stack__cards::after {
  display: block;
  flex: 0 0 70svh;
  height: 70svh;
  content: "";
}

.smart-business-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  height: var(--smart-business-card-height);
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--border-2);
  border-radius: clamp(24px, 3vw, 38px);
  background: var(--bg-2);
  box-shadow: 0 32px 80px -54px rgba(5, 15, 35, 0.72);
  isolation: isolate;
}

.smart-business-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--accent-rgb), 0.14), transparent 32%),
    linear-gradient(135deg, transparent 48%, rgba(var(--accent-rgb), 0.045));
  content: "";
  pointer-events: none;
}

.smart-business-card__visual {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(20px, 2.5vw, 38px);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-2) 88%, var(--accent) 12%);
}

.smart-business-card__visual::after {
  position: absolute;
  inset: 0;
  border-right: 1px solid var(--border-2);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.08), transparent 48%);
  content: "";
  pointer-events: none;
}

.smart-business-card__visual img {
  display: block;
  width: min(100%, 780px);
  height: auto;
  max-height: 88%;
  object-fit: contain;
}

.smart-business-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
}

.smart-business-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--text);
}

.smart-business-card__meta span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 50%;
  color: var(--accent-2);
  background: rgba(var(--accent-rgb), 0.09);
  font-size: 0.78rem;
  font-weight: 800;
}

.smart-business-card__meta strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.smart-business-card__kicker {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.smart-business-card__content h4 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.smart-business-card__content h4 span {
  display: block;
}

.smart-business-card__description {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.smart-business-card__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.smart-business-card__features li {
  position: relative;
  padding-left: 19px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.smart-business-card__features strong,
.smart-business-card__features span {
  display: block;
}

.smart-business-card__features strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.smart-business-card__features li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
  content: "";
}

.smart-business-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.smart-business-card__actions .btn {
  min-width: 156px;
}

.smart-salesforce-ui {
  width: min(100%, 650px);
  padding: 20px;
  border: 1px solid rgba(30, 58, 138, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px -44px rgba(2, 20, 60, 0.7);
  transform: perspective(1000px) rotateY(5deg) rotateX(1deg);
}

.smart-salesforce-ui__bar,
.smart-salesforce-ui__stats,
.smart-salesforce-ui__body,
.smart-salesforce-ui__chart,
.smart-salesforce-ui__pipeline {
  display: flex;
}

.smart-salesforce-ui__bar {
  align-items: center;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7ebf2;
}

.smart-salesforce-ui__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.smart-salesforce-ui__bar i:first-child { background: #ff7250; }
.smart-salesforce-ui__bar i:nth-child(2) { background: #ffb13b; }
.smart-salesforce-ui__bar i:nth-child(3) { background: #2bc775; }
.smart-salesforce-ui__bar span {
  width: 38%;
  height: 10px;
  margin-left: auto;
  border-radius: 99px;
  background: #eef2f7;
}

.smart-salesforce-ui__stats {
  gap: 12px;
  margin: 20px 0;
}

.smart-salesforce-ui__stats b {
  width: 33.333%;
  height: 74px;
  border-radius: 13px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
}

.smart-salesforce-ui__stats b:nth-child(2) { background: linear-gradient(145deg, #ecfdf5, #d1fae5); }
.smart-salesforce-ui__stats b:nth-child(3) { background: linear-gradient(145deg, #fff7ed, #ffedd5); }

.smart-salesforce-ui__body {
  align-items: stretch;
  gap: 14px;
}

.smart-salesforce-ui__chart,
.smart-salesforce-ui__pipeline {
  min-height: 240px;
  border: 1px solid #e7ebf2;
  border-radius: 15px;
  background: #f8fafc;
}

.smart-salesforce-ui__chart {
  width: 58%;
  align-items: flex-end;
  justify-content: space-around;
  padding: 28px 22px;
}

.smart-salesforce-ui__chart i {
  width: 11%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent-3), var(--accent));
}
.smart-salesforce-ui__chart i:nth-child(1) { height: 34%; }
.smart-salesforce-ui__chart i:nth-child(2) { height: 58%; }
.smart-salesforce-ui__chart i:nth-child(3) { height: 46%; }
.smart-salesforce-ui__chart i:nth-child(4) { height: 78%; }
.smart-salesforce-ui__chart i:nth-child(5) { height: 91%; }

.smart-salesforce-ui__pipeline {
  width: 42%;
  flex-direction: column;
  gap: 14px;
  padding: 28px 20px;
}

.smart-salesforce-ui__pipeline i {
  height: 44px;
  border-radius: 10px;
  background: #e8edf5;
}
.smart-salesforce-ui__pipeline i:nth-child(2) { width: 82%; }
.smart-salesforce-ui__pipeline i:nth-child(3) { width: 64%; }

@media (min-width: 961px) and (min-height: 720px) {
  .smart-business-stack__cards {
    gap: clamp(180px, 42svh, 420px);
  }

  .smart-business-card {
    position: sticky;
    top: var(--smart-business-card-top);
    z-index: calc(10 + var(--smart-business-index));
  }
}

@media (max-width: 1100px) {
  .smart-business-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(350px, 1.1fr);
  }

  .smart-business-card__content {
    padding: 38px;
  }
}

@media (max-width: 960px) {
  .smart-business-stack {
    margin-top: 68px;
  }

  .smart-business-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    margin-bottom: 24px;
  }

  .smart-business-stack__cards::after {
    display: none;
  }

  .smart-business-card__visual {
    min-height: 360px;
    border-bottom: 1px solid var(--border-2);
  }

  .smart-business-card__visual::after {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .smart-business-stack {
    margin-top: 52px;
    padding-bottom: 32px;
  }

  .smart-business-stack__head {
    justify-items: start;
    margin-bottom: 30px;
    text-align: left;
  }

  .smart-business-stack__head h3 {
    margin-top: 14px;
    font-size: 2.25rem;
  }

  .smart-business-card {
    border-radius: 22px;
  }

  .smart-business-card__visual {
    min-height: 255px;
    padding: 18px;
  }

  .smart-business-card__content {
    padding: 28px 22px 30px;
  }

  .smart-business-card__content h4 {
    font-size: 1.9rem;
  }

  .smart-business-card__features {
    grid-template-columns: 1fr;
    margin: 24px 0 28px;
  }

  .smart-business-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .smart-business-card__actions .btn {
    min-width: 0;
    padding-inline: 14px;
    font-size: 0.8rem;
  }

  .smart-salesforce-ui {
    padding: 12px;
  }

  .smart-salesforce-ui__chart,
  .smart-salesforce-ui__pipeline {
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-business-card {
    position: relative !important;
    top: auto !important;
    height: auto;
  }
}
