/* DBM Pricing 3D layer
   Optional route asset. Load after the existing pricing styles. */

body.dbm-commercial-page.dbm-pricing-page {
  --dbm-pricing-3d-lime: var(--spatial-lime, var(--dbm-lime, #d8ff9a));
  --dbm-pricing-3d-cyan: var(--spatial-cyan, #75d4ed);
  --dbm-pricing-3d-amber: var(--spatial-amber, #f1c46b);
  --dbm-pricing-3d-line: var(--spatial-line, rgba(195, 220, 207, .24));
  --dbm-pricing-3d-panel: var(--spatial-panel, #102019);
  --dbm-pricing-3d-shadow: rgba(0, 0, 0, .28);
}

body.dbm-commercial-page.dbm-pricing-page .dbm-spatial-hero {
  perspective: 1200px;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-board {
  --dbm-pricing-board-rotate-x: 0deg;
  --dbm-pricing-board-rotate-y: 0deg;
  --dbm-pricing-board-lift: 0px;
  position: relative;
  isolation: isolate;
  transform: rotateX(var(--dbm-pricing-board-rotate-x)) rotateY(var(--dbm-pricing-board-rotate-y)) translateY(var(--dbm-pricing-board-lift));
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(.2, .75, .25, 1), box-shadow 360ms ease;
  will-change: transform;
  box-shadow: 0 24px 50px var(--dbm-pricing-3d-shadow), 0 1px 0 rgba(255, 255, 255, .06) inset;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-board::before,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-board::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border: 1px solid var(--dbm-pricing-3d-line);
  border-radius: 50%;
  transform: translateZ(-18px) rotate(-14deg);
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-board::before {
  width: 84%;
  height: 42%;
  top: 10%;
  right: -15%;
  border-color: color-mix(in srgb, var(--dbm-pricing-3d-cyan) 58%, transparent);
  box-shadow: 0 0 0 12px rgba(117, 212, 237, .035), 0 0 32px rgba(117, 212, 237, .1);
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-board::after {
  width: 54%;
  height: 70%;
  left: -20%;
  bottom: -24%;
  border-color: color-mix(in srgb, var(--dbm-pricing-3d-amber) 54%, transparent);
  transform: translateZ(-24px) rotate(28deg);
}

body.dbm-commercial-page.dbm-pricing-page .dbm-price-row {
  position: relative;
  transform: translateZ(16px);
  transition: background-color 180ms ease, transform 240ms ease;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-price-row:hover,
body.dbm-commercial-page.dbm-pricing-page .dbm-price-row:focus-within {
  transform: translate3d(5px, -2px, 24px);
  background: rgba(216, 255, 154, .06);
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row {
  --dbm-pricing-card-rotate-x: 0deg;
  --dbm-pricing-card-rotate-y: 0deg;
  --dbm-pricing-card-lift: 0px;
  position: relative;
  transform: rotateX(var(--dbm-pricing-card-rotate-x)) rotateY(var(--dbm-pricing-card-rotate-y)) translateY(var(--dbm-pricing-card-lift));
  transform-style: preserve-3d;
  transition: transform 280ms cubic-bezier(.2, .75, .25, 1), border-color 180ms ease, box-shadow 280ms ease;
  will-change: transform;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice::after,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row::after {
  content: "";
  position: absolute;
  inset: auto 12% -9px 12%;
  height: 12px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 0, 0, .32);
  filter: blur(9px);
  opacity: .7;
  transform: translateZ(-18px) scaleX(.82);
  transition: opacity 280ms ease, transform 280ms ease;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice:hover,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice:focus-within,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row:hover,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row:focus-within {
  --dbm-pricing-card-lift: -7px;
  border-color: color-mix(in srgb, var(--dbm-pricing-3d-lime) 70%, var(--dbm-pricing-3d-line));
  box-shadow: 0 18px 30px rgba(0, 0, 0, .22), 0 0 0 1px rgba(216, 255, 154, .06) inset;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice:hover::after,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice:focus-within::after,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row:hover::after,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row:focus-within::after {
  opacity: .95;
  transform: translateZ(-18px) scaleX(1);
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice > *,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row > * {
  transform: translateZ(10px);
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice .tier-label,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-tier .tier-label {
  position: relative;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice .tier-label::before,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-tier .tier-label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 8px 4px 0;
  background: currentColor;
  box-shadow: 7px -4px 0 -0.2px currentColor;
  opacity: .8;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-band {
  position: relative;
  isolation: isolate;
  padding: 64px 0;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-band::before {
  content: "";
  position: absolute;
  inset: 18px -7vw auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dbm-pricing-3d-line), transparent);
  z-index: -1;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-tier-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

body.dbm-commercial-page.dbm-pricing-page .dbm-tier-pair > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(126, 200, 32, .35);
  background: rgba(126, 200, 32, .06);
}

body.dbm-commercial-page.dbm-pricing-page .dbm-tier-pair span { color: var(--dbm-pricing-3d-lime); font-size: 1.25rem; }
body.dbm-commercial-page.dbm-pricing-page .dbm-tier-pair small { color: var(--dbm-muted); }
@media (max-width: 620px) {
  body.dbm-commercial-page.dbm-pricing-page .dbm-tier-pair { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-board,
  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice,
  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row {
    transform: none;
    will-change: auto;
  }

  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-board::before {
    right: -24%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-board,
  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice,
  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row,
  body.dbm-commercial-page.dbm-pricing-page .dbm-price-row {
    transform: none;
    transition: none;
    will-change: auto;
  }

  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-choice::after,
  body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-offer-row::after {
    transition: none;
  }
}

/* Compact map only: the detailed cards remain the source of truth. */
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper {
  position: relative;
  margin: clamp(42px, 7vw, 88px) 0;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(126, 200, 32, .34);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 16%, rgba(117, 212, 237, .12), transparent 34%), linear-gradient(145deg, rgba(9, 21, 16, .98), rgba(12, 28, 22, .9));
  box-shadow: 0 26px 54px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .06);
  perspective: 1400px;
}
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper::before,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(117, 212, 237, .2); border-radius: 50%; transform: rotate(-18deg) translateZ(-60px); }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper::before { width: 52%; height: 42%; right: -16%; top: -18%; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper::after { width: 36%; height: 70%; left: -15%; bottom: -34%; border-color: rgba(241, 196, 107, .18); transform: rotate(24deg) translateZ(-60px); }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper > * { position: relative; z-index: 1; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper .dbm-offer-section-head { margin-bottom: 26px; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper .dbm-offer-section-head p { max-width: 46ch; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-legend { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 8vw, 140px); margin: 0 0 10px; color: var(--dbm-pricing-3d-lime); font: 800 .72rem/1.3 var(--dbm-font-mono, ui-monospace, monospace); letter-spacing: .09em; text-transform: uppercase; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-legend span:last-child { color: var(--dbm-pricing-3d-cyan); }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-rail { display: grid; gap: 10px; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; gap: 12px; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-item { min-width: 0; list-style: none; transition: transform 220ms ease, filter 220ms ease; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-item a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 11px; min-height: 62px; padding: 12px 14px; border: 1px solid rgba(126, 200, 32, .25); border-radius: 12px; color: #eef7f0; background: rgba(2, 8, 6, .72); text-decoration: none; box-shadow: 0 10px 20px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .05); }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-engine a { border-color: rgba(117, 212, 237, .3); }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-item a:hover,
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-item a:focus-visible { transform: translateY(-3px) translateZ(12px); border-color: var(--dbm-pricing-3d-lime); box-shadow: 0 15px 28px rgba(0, 0, 0, .24), 0 0 0 1px rgba(216, 255, 154, .08) inset; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-index { color: var(--dbm-pricing-3d-lime); font: 700 .72rem/1.2 var(--dbm-font-mono, ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-engine .dbm-pricing-zipper-index { color: var(--dbm-pricing-3d-cyan); }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-item strong { min-width: 0; font-size: .98rem; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-price { color: #f4fbf5; font: 800 .92rem/1.2 var(--dbm-font-mono, ui-monospace, monospace); white-space: nowrap; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-price small { color: #bad0c3; font-size: .72rem; font-weight: 500; }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-join { position: relative; height: 2px; background: linear-gradient(90deg, var(--dbm-pricing-3d-lime), var(--dbm-pricing-3d-cyan)); box-shadow: 0 0 12px rgba(117, 212, 237, .4); }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-join::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border: 2px solid var(--dbm-pricing-3d-cyan); border-radius: 50%; background: var(--dbm-pricing-3d-panel); transform: translate(-50%, -50%); }
body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-note { margin: 22px 0 0; color: #bed0c5; font-size: .93rem; }
@media (max-width: 800px) { body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-row { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 7px; } body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-item a { grid-template-columns: 1fr; gap: 5px; } body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-price { font-size: .82rem; } }
@media (max-width: 560px) { body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper { padding: 20px 14px; border-radius: 18px; } body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-legend { grid-template-columns: 1fr; gap: 4px; } body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-row { grid-template-columns: 1fr; gap: 7px; } body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-join { width: 42px; margin: 0 auto; transform: rotate(90deg); } body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-empty { display: none; } }
@media (prefers-reduced-motion: reduce) { body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-item, body.dbm-commercial-page.dbm-pricing-page .dbm-pricing-zipper-item a { transition: none; transform: none; } }
