/* Homepage section enhancements kept outside the static page markup. */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.problem-card {
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfe0ff;
}

.problem-card.problem-systems {
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 58%, #f7fbff 100%);
  border-color: #cfe0ff;
}

.problem-card.problem-margin {
  background: linear-gradient(135deg, #fffdf8 0%, #fff4e0 54%, #f7fbff 100%);
  border-color: #f2d8a9;
}

.problem-card.problem-visibility {
  background: linear-gradient(135deg, #f9fffc 0%, #e7f7f0 54%, #eaf1ff 100%);
  border-color: #bfe8d8;
}

.problem-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f6f8fc;
}

.problem-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.problem-copy {
  display: block;
  padding: 24px 28px 28px;
}

.problem-copy .num {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(61, 124, 255, .1);
  color: var(--blue);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
}

.problem-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.problem-card p {
  color: var(--muted);
  font-size: 15.8px;
  line-height: 1.72;
}

.problem-card strong {
  color: var(--ink-2);
  font-weight: 700;
}

.ind-grid {
  display: grid;
  gap: 24px;
}

.ind {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #fff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.ind-pos {
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 56%, #eaf1ff 100%);
  border-color: #cfe0ff;
}

.ind-restaurant {
  background: linear-gradient(135deg, #fffdf8 0%, #fff4e0 56%, #eaf8f5 100%);
  border-color: #f2d8a9;
}

.ind-mfg {
  background: linear-gradient(135deg, #fbfaff 0%, #edeafe 58%, #eef5ff 100%);
  border-color: #d8d0ff;
}

.ind-distribution {
  background: linear-gradient(135deg, #f9fcff 0%, #eaf1ff 54%, #fff4e0 100%);
  border-color: #cfe0ff;
}

.ind-pharmacy {
  background: linear-gradient(135deg, #f9fffc 0%, #e7f7f0 52%, #eaf1ff 100%);
  border-color: #bfe8d8;
}

.ind-franchise {
  background: linear-gradient(135deg, #f8fbff 0%, #eaf1ff 52%, #e7f7f0 100%);
  border-color: #c8d9ff;
}

.ind:nth-child(even) {
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1fr);
}

.ind:nth-child(even) .ind-media {
  order: 1;
}

.ind:nth-child(even) .ind-copy {
  order: 2;
}

.ind:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfe0ff;
}

.ind-media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f6f8fc;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 34px rgba(11, 18, 32, .08);
}

.ind-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.ind-copy {
  padding: 18px 18px 18px 4px;
}

.ind .badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  background: #eaf1ff;
  margin-bottom: 16px;
}

.ind h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.ind p {
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
}

.mod-theme {
  margin-top: 46px;
}

.mod-theme:first-of-type {
  margin-top: 34px;
}

.theme-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.theme-head .k {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: #eaf1ff;
  border-radius: 7px;
  padding: 5px 10px;
}

.theme-head h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
}

.theme-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mod {
  position: relative;
  overflow: hidden;
  min-height: 194px;
  padding: 24px;
  background: linear-gradient(135deg, #fff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.mod::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--module-accent, var(--blue));
  opacity: .82;
}

.mod::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -58px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: var(--module-glow, rgba(61, 124, 255, .11));
}

.mod:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--module-border, #cfe0ff);
}

.mod .mc {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--module-badge-bg, #eaf1ff);
  color: var(--module-accent, var(--blue));
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .68);
}

.mod h4,
.mod p {
  position: relative;
  z-index: 1;
}

.mod h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mod p {
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.62;
}

.mod-core,
.mod-sales,
.mod-reports {
  --module-accent: #3d7cff;
  --module-border: #cfe0ff;
  --module-badge-bg: #eaf1ff;
  --module-glow: rgba(61, 124, 255, .12);
}

.mod-master,
.mod-stock {
  --module-accent: #0fa9a0;
  --module-border: #bfe8e4;
  --module-badge-bg: #e2f6f4;
  --module-glow: rgba(15, 169, 160, .12);
}

.mod-pos,
.mod-purchase {
  --module-accent: #e08a00;
  --module-border: #f2d8a9;
  --module-badge-bg: #fff4e0;
  --module-glow: rgba(224, 138, 0, .13);
}

.mod-finance,
.mod-manufacturing {
  --module-accent: #6e59e8;
  --module-border: #d8d0ff;
  --module-badge-bg: #edeafe;
  --module-glow: rgba(110, 89, 232, .12);
}

.mod-restaurant {
  --module-accent: #16b47a;
  --module-border: #bfe8d8;
  --module-badge-bg: #e7f7f0;
  --module-glow: rgba(22, 180, 122, .13);
}

.mod-library {
  grid-column: span 2;
  min-height: 194px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(61, 124, 255, .22), transparent 42%),
    linear-gradient(135deg, #0e2a52, #0b1220);
  border: 0;
  color: #fff;
}

.mod-library::before {
  width: 0;
}

.mod-library::after {
  background: rgba(111, 160, 255, .16);
}

.module-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 12px;
  color: #9fc0ff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mod-library h4 {
  color: #fff;
  font-size: 20px;
}

.mod-library p {
  color: #b9c6dd;
  max-width: 54ch;
}

.mod-library .btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.how {
  background:
    linear-gradient(180deg, #f6f8fc 0%, #eef4ff 48%, #f8fbff 100%);
}

.workflow-showcase {
  display: grid;
  gap: 22px;
  margin: 38px 0 30px;
  padding: 28px;
  border: 1px solid rgba(61, 124, 255, .16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(61, 124, 255, .18), rgba(15, 169, 160, .08)),
    linear-gradient(135deg, #0e2a52, #0b1220);
  box-shadow: 0 24px 70px rgba(14, 42, 82, .2);
}

.workflow-showcase-copy {
  color: #fff;
  padding: 10px 4px 10px 6px;
  max-width: 820px;
}

.workflow-showcase-copy h3 {
  color: #fff;
  font-size: 30px;
  max-width: 24ch;
  margin: 10px 0 14px;
}

.workflow-showcase-copy p {
  color: #c5d3eb;
  font-size: 15.8px;
  line-height: 1.72;
  max-width: 78ch;
}

.workflow-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(61, 124, 255, .34), rgba(15, 169, 160, .12)),
    #061938;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 44px rgba(0, 0, 0, .28);
}

.workflow-banner-card img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 7;
  object-fit: cover;
}

.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 34px;
  flex-wrap: wrap;
}

.tab {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #29415f;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(11, 18, 32, .04);
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}

.tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(61, 124, 255, .12);
}

.tab.active {
  background: linear-gradient(135deg, #0e2a52, #0b1220);
  color: #fff;
  border-color: #0e2a52;
}

.flow {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.flow.active {
  display: grid;
}

.step {
  position: relative;
  min-height: 178px;
  padding: 24px 20px;
  border: 1px solid #d8e5fb;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 16px 34px rgba(11, 18, 32, .06);
}

.step .sn {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 800;
}

.step h4 {
  font-size: 16px;
  margin: 13px 0 8px;
}

.step p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
}

.step::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--blue);
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px #eef4ff;
}

.step::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--blue);
  border-top: 2px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
}

.flow .step:last-child::before,
.flow .step:last-child::after {
  display: none;
}

.home-pricing-cta {
  max-width: 980px;
  margin: 36px auto 0;
  padding: 42px;
  text-align: center;
  border: 1px solid rgba(61, 124, 255, .18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(61, 124, 255, .18), rgba(15, 169, 160, .08)),
    linear-gradient(135deg, #0e2a52, #0b1220);
  box-shadow: 0 26px 70px rgba(14, 42, 82, .18);
  color: #fff;
}

.home-pricing-cta h3 {
  max-width: 760px;
  margin: 10px auto 14px;
  color: #fff;
  font-size: 34px;
}

.home-pricing-cta p {
  max-width: 760px;
  margin: 0 auto;
  color: #c5d3eb;
  font-size: 17px;
  line-height: 1.72;
}

.home-pricing-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.home-pricing-actions .btn-light {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

@media (max-width: 1080px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .mod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-showcase-copy h3,
  .workflow-showcase-copy p {
    max-width: none;
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step::before,
  .step::after {
    display: none;
  }

  .ind,
  .ind:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .ind:nth-child(even) .ind-media,
  .ind:nth-child(even) .ind-copy {
    order: initial;
  }

  .ind-copy {
    padding: 4px 4px 14px;
  }
}

@media (max-width: 860px) {
  .mod-grid {
    grid-template-columns: 1fr;
  }

  .workflow-showcase {
    padding: 20px;
  }

  .home-pricing-cta {
    padding: 28px 22px;
  }

  .workflow-showcase-copy h3 {
    font-size: 26px;
  }

  .home-pricing-cta h3 {
    font-size: 28px;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .mod-library {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }
}
