/* ==========================================================================
   nuvio.ro/business — the Business (team) page. Loaded only by business.html
   and en/business.html, after nuvio.css, whose tokens it uses.

   Every drawing is an inline SVG that is complete at rest: with no JS, with
   prefers-reduced-motion, or before the observer fires, it shows the final
   frame. Motion is layered on only under `prefers-reduced-motion:
   no-preference`, once the nearest `.rise` ancestor gets `.is-on` (nuvio.js).
   ========================================================================== */

/* ── Drawings ──────────────────────────────────────────────────────────── */
.bz-fig {
  margin: 0;
  width: 100%;
  min-width: 0;
}
.bz-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.bz-svg .m {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-variation-settings: "wdth" 85;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.bz-svg .s {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
}
.bz-svg .d {
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 700;
}

.bz-h3 {
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.bz-hero__grid {
  display: grid;
  gap: 36px clamp(40px, 5vw, 72px);
  align-items: center;
}
.bz-hero h1 {
  max-width: 16ch;
}
/* "într-un" must not break at its hyphen. */
.bz-nw {
  white-space: nowrap;
}
.bz-hero__lead {
  margin-top: 22px;
}
.bz-fig--hero {
  max-width: 31rem;
  justify-self: center;
}
@media (min-width: 1000px) {
  .bz-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
  }
}

/* ── Three across: steps, calendar panels, collaboration modes ─────────── */
.bz-steps,
.bz-panels,
.bz-modes {
  margin-top: 40px;
  display: grid;
  gap: 40px clamp(24px, 3.4vw, 44px);
}
@media (min-width: 760px) {
  .bz-steps,
  .bz-panels,
  .bz-modes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.bz-step,
.bz-panel,
.bz-mode {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  min-width: 0;
}
.bz-step p,
.bz-panel p,
.bz-mode p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 34ch;
}
.bz-step__n {
  color: var(--brass-ink);
  margin-bottom: 6px;
}
.bz-fig--step {
  max-width: 15rem;
  margin-bottom: 14px;
}
.bz-fig--panel {
  max-width: 20rem;
  margin-bottom: 16px;
}
.bz-fig--mode {
  max-width: 13rem;
  margin-bottom: 12px;
}

/* ── Picture beside a register ─────────────────────────────────────────── */
.bz-split {
  display: grid;
  gap: 36px clamp(40px, 6vw, 88px);
  align-items: center;
}
.bz-fig--roles {
  max-width: 24rem;
  justify-self: center;
}
.bz-fig--slip {
  max-width: 20rem;
  justify-self: center;
}
@media (min-width: 900px) {
  .bz-split {
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  }
  .bz-split--slip {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  }
}

/* ── Locations: the phone and the map ──────────────────────────────────── */
.bz-locs {
  display: grid;
  gap: 40px clamp(40px, 6vw, 88px);
  align-items: center;
}
.bz-fig--phone {
  max-width: 16rem;
  justify-self: center;
}
.bz-fig--map {
  max-width: 24rem;
  margin: 0 auto 32px;
}
@media (min-width: 900px) {
  .bz-locs {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  }
  .bz-fig--map {
    margin-left: 0;
  }
}

/* ── What stays the specialist's ───────────────────────────────────────── */
.bz-keep {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 18px 28px;
  max-width: 62rem;
}
.bz-keep li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.bz-keep__ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--ink);
}
.bz-keep__ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Pricing calculator ────────────────────────────────────────────────── */
.bz-price {
  display: grid;
  gap: 40px clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (min-width: 900px) {
  .bz-price {
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  }
}
/* An app object, so it may be round and lifted. */
.bz-calc {
  background: var(--chip);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow:
    0 22px 40px -28px rgba(33, 43, 50, 0.45),
    0 2px 6px rgba(33, 43, 50, 0.06);
  min-width: 0;
}
.bz-calc__plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--rule-soft);
}
.bz-seg {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.bz-seg[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.bz-calc__count {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bz-calc__count label {
  color: var(--brass-ink);
}
.bz-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bz-stepper button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.18s ease;
}
.bz-stepper button:hover {
  background: var(--paper-2);
}
.bz-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.bz-stepper output {
  min-width: 2.4ch;
  text-align: center;
  font-size: 1.6rem;
}
.bz-range {
  display: block;
  width: 100%;
  height: 44px;
  margin: 6px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.bz-seats {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}
.bz-seats i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--rule-soft);
  transition:
    background 0.22s var(--ease),
    transform 0.22s var(--ease);
}
.bz-seats i.is-on {
  background: var(--ink);
}
.bz-seats.is-disc i.is-on {
  box-shadow: inset 0 -3px 0 var(--brass);
}
.bz-calc__total {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.bz-calc__total .t-figure {
  font-size: clamp(2.2rem, 7vw, 2.75rem);
  line-height: 1.05;
}
.bz-calc__per {
  color: var(--muted);
}
.bz-calc__vat {
  font-family: "Gabarito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
}
.bz-calc__gross {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}
.bz-calc__how {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.bz-calc__off {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
.bz-calc__off.is-hint {
  background: var(--rule-soft);
  color: var(--muted);
}
.bz-calc__nojs {
  display: none;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}
.bz-calc__btn {
  margin-top: 24px;
  width: 100%;
  min-height: 48px;
}
/* With no script the controls would do nothing: the card shows its worked
   example and says so, and the register beside it holds every price. */
.no-js .bz-calc__plan,
.no-js .bz-calc__count,
.no-js .bz-range,
.no-js .bz-seats {
  display: none;
}
.no-js .bz-calc__nojs {
  display: block;
}

/* ── Motion: only when it is welcome ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .bz-pop,
  .bz-grow,
  .bz-fan,
  .bz-glide,
  .bz-note {
    transform-box: fill-box;
    transform-origin: 50% 50%;
  }
  .is-on .bz-pop {
    animation: bz-pop 560ms var(--ease) both;
    animation-delay: var(--d, 0ms);
  }
  .is-on .bz-draw {
    stroke-dasharray: var(--len);
    animation: bz-draw 1000ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--d, 0ms);
  }
  .is-on .bz-grow {
    transform-origin: 0 50%;
    animation: bz-grow 900ms var(--ease) 200ms both;
  }
  .is-on .bz-nudge {
    animation: bz-nudge 2.4s ease-in-out 1s infinite;
  }

  /* The hero: the columns fan out from the first one, then one booking is
     picked up, carried to a colleague, and the client is told. Loops. */
  .is-on .bz-fan {
    animation: bz-fan 900ms var(--ease) both;
    animation-delay: calc(120ms + var(--i) * 110ms);
  }
  .is-on .bz-glide {
    animation: bz-glide 7s var(--ease) 1.3s infinite both;
  }
  .is-on .bz-arc {
    stroke-dasharray: var(--len);
    animation: bz-arc 7s linear 1.3s infinite both;
  }
  .is-on .bz-arc-head {
    animation: bz-arc-head 7s linear 1.3s infinite both;
  }
  .is-on .bz-note {
    animation: bz-note 7s var(--ease) 1.3s infinite both;
  }
}

@keyframes bz-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bz-draw {
  from {
    stroke-dashoffset: var(--len);
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes bz-grow {
  from {
    transform: scaleX(0.08);
  }
  to {
    transform: none;
  }
}
@keyframes bz-nudge {
  0%,
  60%,
  100% {
    transform: none;
  }
  30% {
    transform: translateX(3px);
  }
}
@keyframes bz-fan {
  from {
    opacity: 0;
    transform: translateX(calc(var(--i) * -58px));
  }
  45% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bz-glide {
  0% {
    opacity: 0;
    transform: translateX(var(--dx));
  }
  6%,
  16% {
    opacity: 1;
    transform: translateX(var(--dx));
  }
  22% {
    transform: translate(var(--dx), -5px) scale(1.06);
  }
  40% {
    transform: translate(0, -5px) scale(1.06);
  }
  46%,
  88% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes bz-arc {
  0%,
  20% {
    opacity: 1;
    stroke-dashoffset: var(--len);
  }
  40%,
  88% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  96%,
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}
@keyframes bz-arc-head {
  0%,
  38% {
    opacity: 0;
  }
  42%,
  88% {
    opacity: 1;
  }
  96%,
  100% {
    opacity: 0;
  }
}
@keyframes bz-note {
  0%,
  44% {
    opacity: 0;
    transform: translateY(6px);
  }
  50%,
  88% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: none;
  }
}
