/* Business Types presentation — built on the shared cinematic deck shell. */
:root {
  --business-blue: #7591ff;
  --business-green: #56e98a;
  --business-muted: rgba(243, 245, 255, 0.68);
}

.business-types-deck-page .desktop-nav a[aria-current="page"]::after {
  background: var(--business-blue);
}

.business-scene {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(570px, 1.28fr);
  gap: clamp(20px, 3.5vw, 72px);
}

.business-copy {
  position: relative;
  z-index: 9;
  align-self: center;
  padding-left: clamp(8px, 1.2vw, 22px);
  opacity: var(--scene-copy-opacity);
  transform: translate3d(var(--scene-copy-shift), 0, 0);
  will-change: transform, opacity;
}

.business-copy > p:first-child {
  margin: 0 0 18px;
  color: var(--business-blue);
  font: 700 0.75rem/1.2 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.business-current-copy > p:first-child {
  color: var(--business-green);
}

.business-copy h1,
.business-copy h2 {
  max-width: 600px;
  margin: 0;
  color: #f8f7f2;
  font-family: var(--sans);
  font-size: clamp(2.15rem, 3vw, 3.55rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.business-copy h1 + p,
.business-copy h2 + p {
  max-width: 455px;
  margin: 23px 0 0;
  color: var(--business-muted);
  font: 400 clamp(0.9rem, 1.08vw, 1.04rem)/1.58 var(--sans);
}

.business-primary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 28px;
  border: 1px solid rgba(189, 207, 255, 0.45);
  border-radius: 2px;
  background: linear-gradient(135deg, #3e5be3, #5877ff);
  box-shadow: 0 8px 30px rgba(48, 80, 218, 0.3), inset 0 1px rgba(255,255,255,.25);
  color: #fff;
  font: 700 0.75rem/1 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.business-primary-action:hover {
  box-shadow: 0 12px 36px rgba(52, 87, 231, 0.4), inset 0 1px rgba(255,255,255,.28);
  transform: translateY(-2px);
}

.business-copy > small {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 320px;
  margin-top: 48px;
  color: #91a9ff;
  font: 700 0.68rem/1.55 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-copy > small > i {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.business-copy > small > .platform-icon {
  width: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.business-orbit-visual {
  position: relative;
  z-index: 3;
  min-width: 0;
  height: 100%;
  opacity: var(--scene-visual-opacity);
  transform: translate3d(var(--scene-visual-shift), 0, 0);
  will-change: transform, opacity;
}

.business-orbit-visual::after {
  position: absolute;
  bottom: 3%;
  left: 50%;
  z-index: -2;
  width: 68%;
  height: 12%;
  border-radius: 50%;
  content: "";
  background: radial-gradient(ellipse, rgba(69, 113, 225, 0.23), transparent 70%);
  filter: blur(10px);
  transform: translateX(-50%);
}

.business-orbit {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: 1;
  width: min(91%, 900px);
  height: 68%;
  border: 1px solid rgba(131, 169, 255, 0.64);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(79, 124, 232, 0.08), inset 0 0 18px rgba(84, 129, 240, 0.05);
  transform: translate(-50%, -50%) rotate(-4deg);
}

.business-orbit-dashed {
  border-style: dashed;
  border-color: rgba(134, 166, 235, 0.57);
}

.business-orbit::before,
.business-orbit::after,
.business-orbit > i,
.business-orbit > b {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: #e9f2ff;
  box-shadow: 0 0 8px 2px rgba(160, 197, 255, 0.95), 0 0 22px 6px rgba(75, 123, 244, 0.28);
  animation: business-orbit-pulse 3.6s ease-in-out infinite;
}

.business-orbit::before { top: 8%; left: 23%; }
.business-orbit::after { top: 26%; right: 4%; animation-delay: -1.2s; }
.business-orbit > i:first-child { bottom: 4%; left: 31%; animation-delay: -2.1s; }
.business-orbit > i:nth-child(2) { right: 18%; bottom: 11%; animation-delay: -.7s; }
.business-orbit > b:first-of-type { top: 49%; left: -2px; animation-delay: -2.8s; }
.business-orbit > b:nth-of-type(2) { top: 58%; right: -2px; animation-delay: -1.7s; }

@keyframes business-orbit-pulse {
  0%, 100% { opacity: .4; transform: scale(.72); }
  50% { opacity: 1; transform: scale(1.2); }
}

.business-coffee-device,
.future-device {
  top: 50%;
  left: 50%;
  width: min(42vh, 20vw, 278px);
  transform: translate(-50%, -50%);
}

.business-coffee-device .platform-device-frame {
  background: linear-gradient(100deg, #181a1e, #aaa398 18%, #3d3b39 42%, #b7b0a6 72%, #15171b);
}

.business-coffee-device img {
  aspect-ratio: 690 / 1500;
  object-position: center;
}

.business-node {
  position: absolute;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(247, 248, 255, 0.82);
  font: 700 0.64rem/1.2 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.business-node > span {
  display: grid;
  gap: 5px;
  min-width: 94px;
}

.business-node small {
  color: #82a5ff;
  font: inherit;
  font-size: 0.57rem;
}

.business-node.is-available small {
  color: var(--business-green);
}

.business-node-icon,
.business-node .platform-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 234, 255, 0.74);
  border-radius: 50%;
  background: rgba(4, 9, 17, 0.9);
  box-shadow: 0 0 15px rgba(100, 147, 255, 0.19);
  color: #f8f9ff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.business-node.is-available .business-node-icon,
.business-node.is-available .platform-icon {
  border-color: rgba(96, 241, 145, 0.87);
  box-shadow: 0 0 14px rgba(58, 229, 117, 0.45), inset 0 0 14px rgba(36, 171, 86, 0.16);
  color: #f7fff9;
}

.business-hero-visual .node-coffee { top: 43%; left: 2%; }
.business-hero-visual .node-quick { top: 18%; right: 2%; }
.business-hero-visual .node-retail { top: 61%; right: 0; }
.business-hero-visual .node-services { bottom: 6%; left: 7%; }

/* Current workflow scene. */
.business-current-scene {
  grid-template-columns: minmax(330px, .62fr) minmax(610px, 1.38fr);
}

.business-current-copy {
  max-width: 510px;
}

.business-square-status,
.visual-square-status {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #91adff;
  font: 700 0.72rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.business-square-status {
  margin-top: 30px;
}

.business-square-status .square-symbol,
.visual-square-status .square-symbol {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(145, 173, 255, .72);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(91, 137, 255, .2);
}

.business-square-status .square-symbol::before,
.visual-square-status .square-symbol::before {
  width: 14px;
  height: 14px;
  border-width: 3px;
  border-radius: 3px;
}

.business-square-status span::before,
.visual-square-status span::before {
  margin-right: 8px;
  content: "·";
}

.business-text-action {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: #89a6ff;
  font: 700 0.73rem/1 var(--sans);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.business-text-action .platform-icon {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.business-current-visual .business-orbit {
  width: min(78%, 750px);
  height: 72%;
  transform: translate(-50%, -50%) rotate(2deg);
}

.business-current-visual .business-coffee-device {
  width: min(42vh, 20vw, 275px);
}

.business-current-visual .business-node {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.business-current-visual .business-node > span {
  min-width: 0;
}

.business-current-visual .node-ordering { top: 24%; left: 8%; }
.business-current-visual .node-loyalty { top: 21%; right: 5%; }
.business-current-visual .node-rewards { right: 4%; bottom: 21%; }
.business-current-visual .node-locations { bottom: 18%; left: 8%; }

.visual-square-status {
  position: absolute;
  right: 15%;
  bottom: 1%;
  z-index: 8;
}

/* Future concepts scene. */
.business-future-copy > small {
  color: rgba(244, 246, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.business-future-visual .business-orbit {
  width: min(82%, 780px);
  height: 66%;
}

.future-device {
  width: min(43vh, 20vw, 280px);
}

.future-device-screen {
  position: relative;
  aspect-ratio: 690 / 1500;
  overflow: hidden;
  border-radius: 36px;
  background: #020306;
}

.future-device-screen > .future-screen-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 690 / 1500;
  border-radius: 0;
  object-fit: cover;
  background: #020306;
}

.business-future-visual .node-quick { top: 19%; right: 5%; }
.business-future-visual .node-retail { top: 51%; right: 0; }
.business-future-visual .node-services { right: 7%; bottom: 8%; }

@media (max-width: 1250px) {
  .business-scene {
    grid-template-columns: minmax(290px, .72fr) minmax(500px, 1.28fr);
    gap: 20px;
  }

  .business-copy h1,
  .business-copy h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
  .business-coffee-device,
  .future-device { width: min(38vh, 19vw, 235px); }
  .business-node-icon,
  .business-node .platform-icon { width: 47px; height: 47px; padding: 11px; }
  .business-node { font-size: .55rem; }
  .business-node small { font-size: .49rem; }
}

@media (max-height: 740px) and (min-width: 821px) {
  .business-copy h1 + p,
  .business-copy h2 + p { margin-top: 15px; font-size: .84rem; }
  .business-primary-action { min-height: 44px; margin-top: 20px; }
  .business-copy > small { margin-top: 25px; }
  .business-coffee-device,
  .future-device { width: min(53vh, 21vw, 275px); }
}

@media (max-width: 820px) {
  .business-scene {
    display: block;
    padding: 79px 16px 18px;
  }

  .business-copy {
    position: absolute;
    top: 90px;
    right: 20px;
    left: 20px;
    z-index: 12;
    padding: 0;
  }

  .business-copy > p:first-child { margin-bottom: 9px; font-size: .61rem; }
  .business-copy h1,
  .business-copy h2 { max-width: 340px; font-size: clamp(1.65rem, 7.8vw, 2.08rem); line-height: 1.04; }
  .business-copy h1 + p,
  .business-copy h2 + p,
  .business-copy > small { display: none; }

  .business-orbit-visual {
    position: absolute;
    inset: 202px 5px 108px;
    height: auto;
  }

  .business-orbit-visual::after { bottom: 0; width: 90%; }
  .business-orbit { width: min(92vw, 420px); height: 62%; }
  .business-coffee-device,
  .future-device { width: min(38vh, 44vw, 190px); }
  .future-device-screen { border-radius: 24px; }

  .business-node-icon,
  .business-node .platform-icon { width: 39px; height: 39px; padding: 9px; }
  .business-node { gap: 7px; font-size: .49rem; }
  .business-node small { font-size: .44rem; }
  .business-node > span { min-width: 84px; }

  .business-hero-visual .business-coffee-device { left: 39%; }
  .business-hero-visual .business-orbit {
    top: 48%;
    left: 56%;
    width: 67%;
    height: 82%;
    border-radius: 0;
    border-width: 0 0 0 1px;
    transform: translate(-50%, -50%);
  }
  .business-hero-visual .business-orbit::before,
  .business-hero-visual .business-orbit::after,
  .business-hero-visual .business-orbit > * { display: none; }
  .business-hero-visual .node-coffee { top: 21%; right: 0; left: auto; }
  .business-hero-visual .node-quick { top: 43%; right: 0; }
  .business-hero-visual .node-retail { top: 64%; right: 0; }
  .business-hero-visual .node-services { right: 0; bottom: 0; left: auto; }
  .business-hero-visual .business-node::before {
    position: absolute;
    right: 100%;
    width: clamp(15px, 7vw, 34px);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(139, 176, 255, .7));
  }
  .business-hero-visual .node-coffee::before { background: linear-gradient(90deg, transparent, rgba(89, 235, 135, .82)); }

  .business-hero-copy .business-primary-action {
    position: fixed;
    right: 18px;
    bottom: 24px;
    left: 18px;
    z-index: 20;
    width: auto;
    margin: 0;
  }

  .business-current-copy .business-square-status,
  .business-current-copy .business-text-action { display: none; }
  .business-current-copy .business-primary-action,
  .business-future-copy .business-primary-action {
    position: fixed;
    right: 18px;
    bottom: 24px;
    left: 18px;
    z-index: 20;
    width: auto;
    margin: 0;
  }

  .business-current-visual .business-coffee-device { width: min(38vh, 44vw, 190px); }
  .business-current-visual .business-orbit { width: 92%; height: 72%; }
  .business-current-visual .business-node > span { display: none; }
  .business-current-visual .node-ordering { top: 16%; left: 0; }
  .business-current-visual .node-loyalty { top: 16%; right: 0; }
  .business-current-visual .node-rewards { right: 0; bottom: 12%; }
  .business-current-visual .node-locations { bottom: 12%; left: 0; }
  .visual-square-status { right: 50%; bottom: -5%; transform: translateX(50%); font-size: .51rem; }

  .business-future-visual .business-orbit { width: 88%; height: 70%; }
  .business-future-visual .node-quick { top: 15%; right: 0; }
  .business-future-visual .node-retail { top: 49%; right: 0; }
  .business-future-visual .node-services { right: 1%; bottom: 4%; }
}

@media (max-width: 420px) {
  .business-copy h1,
  .business-copy h2 { font-size: clamp(1.45rem, 7.5vw, 1.78rem); }
  .business-orbit-visual { top: 194px; }
  .business-coffee-device,
  .future-device { width: min(36vh, 42vw, 172px); }
}

@media (prefers-reduced-motion: reduce) {
  .business-orbit::before,
  .business-orbit::after,
  .business-orbit > i,
  .business-orbit > b { animation: none; }
}
