/* Site V2 industry family: visualise how operational data reaches accounting. */

.industry-v2 { overflow-x: clip; }

.industry-flow-hero {
  padding: 68px 0 62px;
  background:
    radial-gradient(circle at 82% 24%, rgba(251, 197, 61, .2), transparent 28%),
    linear-gradient(145deg, #3b074b, #621578 58%, #741f88);
  color: #fff;
}

.industry-flow-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
  gap: 44px;
  align-items: center;
}

.industry-flow-hero .breadcrumbs,
.industry-flow-hero .breadcrumbs a { color: rgba(255,255,255,.72); }

.industry-flow-hero h1 {
  max-width: 860px;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: .99;
}

.industry-flow-hero__lead {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}

.industry-flow-hero__panel {
  position: relative;
  min-height: 360px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 30px 74px rgba(25,0,34,.24);
  overflow: hidden;
}

.industry-flow-hero__panel > p {
  margin: 0 0 10px;
  color: #f5d368;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.industry-flow-hero__panel h2 {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.14;
}

.industry-flow-hero__panel > div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-flow-hero__panel span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size: .76rem;
  font-weight: 800;
}

.industry-flow-hero__panel img {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 230px;
  height: 230px;
  opacity: .2;
  object-fit: contain;
}

.industry-v2__heading { max-width: 850px; }

.industry-data-flow__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.industry-data-flow__track article {
  position: relative;
  min-width: 0;
  padding: 24px 18px;
}

.industry-data-flow__track article + article { border-left: 1px solid var(--line); }
.industry-data-flow__track article:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: -5px;
  top: 35px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #77218b;
  border-right: 2px solid #77218b;
  background: #fff;
  transform: rotate(45deg);
}

.industry-data-flow__track span,
.industry-rhythm__grid span,
.industry-friction__grid span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #77218b;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.industry-data-flow__track h3,
.industry-rhythm__grid h3,
.industry-friction__grid h3,
.industry-scope__grid h3,
.industry-source-map__row h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.industry-data-flow__track p,
.industry-rhythm__grid p,
.industry-friction__grid p,
.industry-scope__grid p,
.industry-source-map__row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.industry-friction__grid,
.industry-rhythm__grid,
.industry-scope__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.industry-friction__grid article,
.industry-rhythm__grid article,
.industry-scope__grid article {
  padding: 24px 21px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.industry-friction__grid article { border-top: 4px solid #d7aa2d; }
.industry-rhythm__grid article { border-top: 4px solid #76208a; }

.industry-source-map__layout {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: start;
}

.industry-source-map__layout > div:first-child { position: sticky; top: 132px; }
.industry-source-map__layout > div:first-child h2 { margin: 8px 0 12px; }
.industry-source-map__layout > div:first-child p:last-child { color: var(--muted); line-height: 1.7; }

.industry-source-map__rows {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.industry-source-map__row {
  display: grid;
  grid-template-columns: minmax(130px,.65fr) minmax(0,1fr) minmax(0,1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.industry-source-map__row + .industry-source-map__row { border-top: 1px solid var(--line); }
.industry-source-map__row strong { color: #5d126e; font-size: .9rem; line-height: 1.5; }

.industry-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbf8fc;
}

.industry-related > strong { margin-right: 4px; color: var(--purple-900); }
.industry-related a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff;
  color: #651677;
  font-size: .84rem;
  font-weight: 850;
}

.industry-v2-cta {
  padding-block: 54px;
  background: linear-gradient(135deg, #421052, #6c1a80);
  color: #fff;
}

.industry-v2-cta__inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 36px;
  align-items: center;
}

.industry-v2-cta h2 { max-width: 780px; margin: 8px 0 10px; color: #fff; }
.industry-v2-cta p:not(.eyebrow) { max-width: 770px; margin: 0; color: rgba(255,255,255,.82); line-height: 1.65; }
.industry-v2-cta__inner > div:last-child { display: grid; gap: 10px; min-width: 245px; }

@media (max-width: 1120px) {
  .industry-data-flow__track { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .industry-data-flow__track article:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .industry-data-flow__track article:nth-child(5), .industry-data-flow__track article:nth-child(6) { border-top: 1px solid var(--line); }
  .industry-data-flow__track article:nth-child(3)::after { display: none; }
}

@media (max-width: 980px) {
  .industry-flow-hero__grid, .industry-source-map__layout { grid-template-columns: 1fr; }
  .industry-source-map__layout > div:first-child { position: static; }
  .industry-friction__grid, .industry-rhythm__grid, .industry-scope__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .industry-flow-hero { padding: 46px 0 42px; }
  .industry-flow-hero__grid { gap: 28px; }
  .industry-flow-hero h1 { font-size: clamp(2.15rem, 11vw, 3.1rem); }
  .industry-flow-hero__panel { min-height: 300px; padding: 22px; border-radius: 20px; }
  .industry-data-flow__track { grid-template-columns: 1fr; border: 0; gap: 10px; background: transparent; overflow: visible; }
  .industry-data-flow__track article,
  .industry-data-flow__track article + article,
  .industry-data-flow__track article:nth-child(4),
  .industry-data-flow__track article:nth-child(5),
  .industry-data-flow__track article:nth-child(6) { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .industry-data-flow__track article::after { display: none; }
  .industry-friction__grid, .industry-rhythm__grid, .industry-scope__grid, .industry-v2-cta__inner { grid-template-columns: 1fr; }
  .industry-source-map__row { grid-template-columns: 1fr; gap: 7px; }
  .industry-v2-cta__inner > div:last-child { min-width: 0; }
  .industry-v2-cta .btn, .industry-flow-hero .btn { width: 100%; }
}

@media (max-width: 360px) {
  .industry-flow-hero__panel,
  .industry-data-flow__track article,
  .industry-friction__grid article,
  .industry-rhythm__grid article,
  .industry-scope__grid article,
  .industry-source-map__row { padding-inline: 17px; }
}
