#main > section[id] {
  scroll-margin-top: var(--space-9);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.pz-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 750;
  font-stretch: 75%;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.pz-skip-link:focus-visible {
  position: fixed;
  z-index: 20;
  top: var(--space-4);
  left: var(--space-4);
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.pz-stub h1,
.pz-legal-page h1 {
  margin: 0;
}

.pz-legal-page {
  padding-block: var(--space-5);
}

.motriz-result-zone {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.motriz-result__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.motriz-result__copy {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.motriz-result__rank {
  display: grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  border-radius: var(--radius-md);
  background: var(--zone-ink);
  color: var(--zone-ground);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.pz-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pz-product-hero__copy {
  min-width: 0;
}

@media (min-width: 960px) {
  .pz-product-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-6);
  }
}

.pz-demo {
  width: 100%;
  min-width: 0;
  color: var(--zone-ink);
}

.pz-demo__stage {
  position: relative;
  min-width: 0;
}

.pz-demo__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: var(--space-2);
  align-items: start;
  margin-top: var(--space-3);
}

.pz-demo__captions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  min-width: 0;
}

.pz-demo__caption {
  display: grid;
  grid-template-rows: 3px auto;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-1) 0 0;
  border: 0;
  background: transparent;
  color: var(--zone-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 16px;
  text-align: left;
  cursor: pointer;
}

.pz-demo__caption[aria-pressed="true"] {
  color: var(--zone-ink);
  font-weight: 650;
}

.pz-demo__caption:focus-visible,
.pz-demo__toggle:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-width);
}

.pz-demo__caption:disabled {
  cursor: default;
  opacity: 1;
}

.pz-demo:not(.pz-demo--live) .pz-demo__caption[aria-pressed="true"] {
  color: var(--zone-muted);
  font-weight: 500;
}

.pz-demo__progress {
  display: none;
  overflow: hidden;
  width: 100%;
  height: 3px;
  background: var(--line);
}

.pz-demo__progress progress {
  display: block;
  width: 100%;
  height: 100%;
  accent-color: var(--zone-action);
  border: 0;
  appearance: none;
}
.pz-demo__progress progress::-webkit-progress-bar { background: var(--line); }
.pz-demo__progress progress::-webkit-progress-value { background: var(--zone-action); }
.pz-demo__progress progress::-moz-progress-bar { background: var(--zone-action); }

.pz-demo__toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--zone-ground);
  color: var(--zone-ink);
  cursor: pointer;
}

.pz-demo__toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.pz-demo--live .pz-demo__progress {
  display: block;
}

.pz-demo--live .pz-demo__toggle {
  display: grid;
}

.pz-demo--live .pz-demo__caption:not(:disabled) {
  cursor: pointer;
}

.pz-demo--live [data-count] {
  font-variant-numeric: tabular-nums;
}

.pz-sabio-window {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ground);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.pz-sabio-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: var(--space-3);
  border-bottom: 1px solid var(--line);
  background: var(--ground-soft);
}

.pz-sabio-window__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.pz-sabio-window__bar i {
  display: block;
  width: 42%;
  height: 13px;
  margin-left: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--raised);
}

.pz-sabio-window__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
  gap: var(--space-2);

  padding: var(--space-2);
}

.pz-sabio-table {
  overflow: hidden;
  padding: var(--space-3) var(--space-2);
  color: var(--ink-muted);
}

.pz-sabio-table p {
  margin: 0 0 var(--space-3);
  font-size: 12px;
  font-weight: 650;
}

.pz-sabio-table__head,
.pz-sabio-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 24px;
  gap: 4px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
}

.pz-sabio-table__head {
  font-size: 10px;
}

.pz-sabio-table__head span {
  color: var(--line-strong);
}

.pz-sabio-table__row i,
.pz-sabio-table__row span {
  display: block;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--line);
}

.pz-sabio-table__row i {
  width: 80%;
}

.pz-sabio-table__row span:first-of-type {
  width: 24px;
}

.pz-sabio-table__row span:last-of-type {
  width: 18px;
}

.pz-sabio-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;

  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--raised);
}

.pz-sabio-panel__head {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.pz-sabio-panel__head img {
  width: 26px;
  height: 26px;
}

.pz-sabio-chat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-width: 0;
  padding-top: var(--space-1);
}

.pz-sabio-bubble {
  max-width: 100%;
  margin: 0;
  padding: 7px 9px;
  border-radius: var(--radius-md);
  font-size: 11.5px;
  line-height: 16px;
}

.pz-sabio-bubble--user {
  align-self: flex-end;
  background: var(--zone-action);
  color: var(--zone-on-action);
}

.pz-sabio-bubble--answer {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--ground);
}

.pz-sabio-bubble--answer p {
  margin: 0;
}

.pz-demo__typing {
  display: none;
}

.pz-demo--live .pz-demo__typing {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  min-width: 40px;
  min-height: 26px;
}

.pz-demo__typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: pz-demo-dot 900ms ease-in-out infinite alternate;
}

.pz-demo__typing i:nth-child(2) { animation-delay: 180ms; }
.pz-demo__typing i:nth-child(3) { animation-delay: 360ms; }

@keyframes pz-demo-dot {
  to { opacity: 0.35; transform: translateY(-3px); }
}

.pz-sabio-athletes {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.pz-sabio-athletes li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-1);
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
}

.pz-sabio-athletes li span {
  color: var(--ink-muted);
  font-weight: 500;
}

.pz-sabio-attachment {
  align-self: flex-end;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ground-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pz-sabio-review {
  display: grid;
  gap: var(--space-1);
  max-width: 100%;
  overflow: hidden;
  padding: var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--ground);
  box-shadow: var(--shadow-1);
  font-size: 10.5px;
  line-height: 14px;
}

.pz-sabio-review > strong {
  font-size: 11.5px;
}

.pz-sabio-review p {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-1);
  margin: 0;
}

.pz-sabio-review p span,
.pz-sabio-review small {
  color: var(--ink-muted);
}

.pz-sabio-review p b {
  font-weight: 600;
}

.pz-sabio-review__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: var(--space-1);
}

.pz-sabio-review__actions span {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 9.5px;
  line-height: 13px;
  white-space: nowrap;
}

.pz-sabio-review__actions .pz-sabio-review__confirm {
  border-color: var(--zone-action);
  background: var(--zone-action);
  color: var(--zone-on-action);
  transition: transform 120ms ease-out, filter 120ms ease-out;
}

.pz-demo--sabio.is-confirmed .pz-sabio-review__confirm {
  filter: brightness(0.92);
  transform: translateY(1px);
}

.pz-sabio-log {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 42px;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ground-soft);
  font-size: 11px;
  font-weight: 600;
}

.pz-sabio-log svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--zone-action);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pz-motriz-stage {

  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ground-soft);
  box-shadow: var(--shadow-1);
}

.pz-motriz-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);

  padding: var(--space-2);
}

.pz-motriz-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--raised);
  color: var(--ink);
}

.pz-motriz-panel__head {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.pz-motriz-panel__head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.pz-motriz-athlete {
  margin: 0 0 var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ground-soft);
  font-size: 11px;
  line-height: 16px;
}

.pz-motriz-tests,
.pz-motriz-quality {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pz-motriz-tests li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 15px;
}

.pz-motriz-tests b {
  color: var(--zone-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pz-motriz-quality__item {
  display: grid;
  gap: var(--space-2);
  font-size: 11px;
  line-height: 15px;
}

.pz-motriz-quality__item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.pz-motriz-quality__item small {
  color: var(--zone-muted);
  font-size: 9.5px;
  line-height: 13px;
  text-align: right;
}

.pz-motriz-quality__item--top > div > span {
  font-weight: 700;
}

.pz-motriz-quality__track {
  display: block;
  overflow: hidden;
  height: 7px;
  border-radius: var(--radius-sm);
  background: var(--line);
}

.pz-motriz-quality__track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--radius-sm);
  background: var(--line-strong);
  transition: width 480ms ease-out, background-color 220ms ease-out;
}

.pz-motriz-quality__track i.pz-motriz-quality__fill--82 { width: 82%; }
.pz-motriz-quality__track i.pz-motriz-quality__fill--58 { width: 58%; }
.pz-motriz-quality__track i.pz-motriz-quality__fill--38 { width: 38%; }
.pz-motriz-quality__track i.pz-motriz-quality__fill--24 { width: 24%; }

.pz-motriz-quality__item--top .pz-motriz-quality__track i {
  background: var(--zone-action);
}

.pz-motriz-drill {
  display: grid;
  grid-template-columns: var(--space-7) minmax(0, 1fr);
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.pz-motriz-drill .motriz-result__rank {
  width: var(--space-6);
  height: var(--space-6);
  font-size: 13px;
}

.pz-motriz-drill h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 15px;
}

.pz-motriz-drill p,
.pz-motriz-drill small {
  display: block;
  margin: var(--space-1) 0 0;
  color: var(--ink-muted);
  font-size: 9.5px;
  line-height: 13px;
}

.pz-motriz-flow__connector {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--zone-action);
}

.pz-motriz-flow__connector path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.pz-demo--live .pz-motriz-flow__connector path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.pz-motriz-flow__connector path.is-on {
  animation: pz-flow-draw 620ms ease-out forwards;
}

@keyframes pz-flow-draw {
  to { stroke-dashoffset: 0; }
}

.pz-motriz-flow__connector--wide {
  display: none;
}

.pz-case__frame.pz-demo {
  gap: var(--space-3);
  padding: var(--space-4);
}

.pz-case__frame .pz-demo__stage.pz-case__phone {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: min(100%, 260px);

  padding: var(--space-4);
  aspect-ratio: auto;
}

.pz-case__frame .pz-demo__controls--case {
  display: flex;
  align-self: flex-end;
  margin-top: 0;
}

.pz-case__frame .pz-demo__toggle {
  background: var(--zone-ground);
  color: var(--zone-ink);
}

.pz-case__frame .pz-case__chat-title,
.pz-case__frame .pz-case__bubble {
  flex: 0 0 auto;
}

.pz-case__frame .pz-demo__typing {
  min-height: 28px;
}

.pz-case__frame .pz-demo__typing i {
  background: var(--zone-muted);
}

html.pz-motion-enabled .pz-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}

html.pz-motion-enabled .pz-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 960px) {

  .pz-motriz-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);

  }

  .pz-motriz-flow__connector--wide {
    display: block;
    top: 110px;
    left: 0;
    width: 100%;
    height: 50px;
  }
}

@media (max-width: 599px) {
  .pz-sabio-table {
    display: none;
  }

  .pz-sabio-window__body {
    display: block;

  }

  .pz-case__frame .pz-demo__stage.pz-case__phone {
    width: min(100%, 260px);
    padding: var(--space-3);
  }
}

/* Timeline entries reserve space in data panels, but chat entries flow from the bottom. */
.pz-demo--live [data-at] { visibility: hidden; opacity: 0; }
.pz-demo--live [data-at].is-on { visibility: inherit; opacity: 1; animation: pz-demo-enter 240ms ease-out; }
@keyframes pz-demo-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pz-type-word { white-space: nowrap; }
.pz-demo--live .pz-type-char { visibility: hidden; }
.pz-demo--live .pz-type-char.is-visible { visibility: visible; }
.pz-demo--live .pz-sabio-chat { height: 440px; justify-content: flex-end; overflow: hidden; }
.pz-demo--live .pz-sabio-chat > *, .pz-demo--live .pz-case__phone > * { flex-shrink: 0; }
.pz-demo--live .pz-sabio-chat [data-at]:not(.is-on),
.pz-demo--live .pz-case__phone [data-at]:not(.is-on),
.pz-demo__state { display: none; }
.pz-demo--live .pz-case__phone { height: 440px; justify-content: flex-end; overflow: hidden; }
.pz-demo:not(.pz-demo--live) .pz-sabio-review { display: none; }
.pz-demo:not(.pz-demo--live) .pz-case__phone { height: auto; justify-content: flex-start; }
.pz-demo--live .pz-motriz-quality__track i[data-bar-width]:not(.is-filled) { width: 0; }
.pz-demo--live .pz-motriz-quality__track i.is-filled.pz-motriz-quality__fill--82 { width: 82%; }
.pz-demo--live .pz-motriz-quality__track i.is-filled.pz-motriz-quality__fill--58 { width: 58%; }
.pz-demo--live .pz-motriz-quality__track i.is-filled.pz-motriz-quality__fill--38 { width: 38%; }
.pz-demo--live .pz-motriz-quality__track i.is-filled.pz-motriz-quality__fill--24 { width: 24%; }
.pz-motriz-flow { align-items: start; }
@media (max-width: 959px) {
  .pz-motriz-flow__connector { display: none; }
  .pz-demo--live .pz-motriz-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 220ms ease-out, visibility 0s linear 220ms; }
  .pz-demo--live .pz-motriz-panel.is-current { visibility: visible; opacity: 1; transition-delay: 0s; }
}
@media (max-width: 599px) {
  .pz-demo--live .pz-sabio-chat { height: 400px; }
  .pz-sabio-bubble, .pz-case__frame .pz-case__bubble { font-size: 15px; line-height: 21px; }
  .pz-demo .meta, .pz-demo + .meta, .pz-case__label, .pz-motriz-drill small, .pz-motriz-athlete, .pz-sabio-review, .pz-sabio-review > strong, .pz-sabio-review__actions span, .pz-sabio-log, .pz-sabio-attachment { font-size: 14px; line-height: 19px; }
  .pz-motriz-tests li, .pz-motriz-quality__item, .pz-motriz-drill p { font-size: 15px; line-height: 21px; }
}

@media (max-width: 599px) {
  .pz-sabio-athletes li { font-size: 15px; line-height: 21px; }
  .pz-demo__caption, .pz-motriz-quality__item small, .pz-motriz-drill h4 { font-size: 14px; line-height: 19px; }
}

.pz-demo.is-paused *, .pz-demo.is-paused *::before, .pz-demo.is-paused *::after { animation-play-state: paused !important; }
@media (max-width: 599px) {
  .pz-motriz-tests b { font-size: 15px; }
  .pz-sabio-review small { font-size: 14px; line-height: 19px; }
}

/* Review fixes: note inside the demo, chat header outside the scrolling messages, readable desktop sizes. */
.pz-demo__note { margin: var(--space-3) 0 0; }
.pz-demo:not(.pz-demo--live) .pz-demo__controls { margin-bottom: var(--space-2); }
.pz-case__messages { display: flex; flex-direction: column; gap: var(--space-3); min-height: 0; }
.pz-demo--live .pz-case__messages { flex: 1 1 0; justify-content: flex-end; overflow: hidden; }
.pz-demo--live .pz-case__messages > * { flex-shrink: 0; }
.pz-demo--live .pz-case__phone { justify-content: flex-start; }
@media (min-width: 960px) {
  .pz-motriz-flow { align-items: start; }
}
@media (min-width: 600px) {
  .pz-sabio-bubble, .pz-sabio-athletes li, .pz-case__frame .pz-case__bubble { font-size: 14px; line-height: 20px; }
  .pz-sabio-review, .pz-sabio-review > strong, .pz-sabio-review__actions span, .pz-sabio-log, .pz-sabio-attachment,
  .pz-motriz-tests li, .pz-motriz-quality__item, .pz-motriz-drill h4, .pz-motriz-athlete { font-size: 13px; line-height: 18px; }
  .pz-sabio-review small, .pz-motriz-drill p, .pz-motriz-drill small, .pz-motriz-quality__item small,
  .pz-sabio-table, .pz-sabio-table p, .pz-sabio-panel__head, .pz-demo__caption { font-size: 12px; line-height: 16px; }
  .pz-motriz-panel__head h3 { font-size: 14px; }
  .pz-motriz-tests b { font-size: 14px; }
}

/* Full-bleed product chapters; surfaces retain their product UI tokens. */
.pz-band--hero { --band-ground: oklch(0.205 0.01 275); --band-ink: oklch(0.965 0.003 275); --band-muted: var(--band-ink); --band-accent: var(--band-ink); }
.pz-band--sabio { --band-ground: var(--sabio-orange); --band-ink: var(--sabio-on-orange); --band-muted: var(--band-ink); --band-accent: var(--band-ink); }
.pz-band--motriz { --band-ground: #0f6b4f; --band-ink: #fff; --band-muted: #fff; --band-accent: #ff5b2e; }
.pz-band--apps { --band-ground: var(--rmb-navy); --band-ink: #fff; --band-muted: var(--rmb-on-navy-muted); --band-accent: #fff; }
@media (prefers-color-scheme: dark) {
  .pz-band--sabio { --band-ground: oklch(0.66 0.16 50); }
  .pz-band--motriz { --band-ground: #0b4a37; }
}
.pz-band { position: relative; background: var(--band-ground); color: var(--band-ink); padding-block: 96px; }
.pz-band > .pz-container { gap: 40px; }
.pz-band h1, .pz-band h2 { max-width: 22ch; margin: 0; }
.pz-band--sabio h2 { font-stretch: 100%; }
.pz-band--motriz h2, .pz-stats strong { font-stretch: 125%; }
.pz-band--hero h1, .pz-band--apps h2 { font-stretch: 75%; }
.pz-band .lead { color: inherit; }
.pz-band .meta, .pz-band .pz-case__story, .pz-band .pz-case__kicker, .pz-band .pz-case__lead, .pz-band .pz-case__credit, .pz-band .pz-facts dt { color: var(--band-muted); }
.pz-band a { color: inherit; }
.pz-band .pz-btn { background: var(--band-ink); color: var(--band-ground); border-color: var(--band-ink); }
.pz-band .pz-btn--quiet { color: var(--band-ink); background: transparent; }
.pz-band :focus-visible { outline-color: var(--band-ink); }
.pz-band .pz-card { background: var(--raised); color: var(--ink); }
.pz-band .pz-card p { color: var(--ink); }
.pz-band .pz-demo { padding: 16px; border-radius: var(--radius-lg); background: var(--raised); }
.pz-band .pz-demo .meta { color: var(--ink-muted); }
.pz-band .pz-demo :focus-visible { outline-color: var(--zone-ink); }
.pz-doors { display: grid; gap: 20px; scroll-margin-top: 100px; }
.pz-door { display: grid; gap: 20px; padding: 28px; background: var(--band-ground); color: var(--band-ink) !important; text-decoration: none; border-radius: var(--radius-md); }
.pz-door p { margin: 0; }
.pz-door__arrow { font-size: 28px; transition: transform 200ms; }
.pz-door:is(:hover,:focus-visible) .pz-door__arrow { transform: translateX(8px); }
.pz-stats { display: grid; gap: 28px; }
.pz-stats strong { font-size: clamp(40px, 6vw, 72px); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.pz-nav { position: sticky; top: 0; z-index: 10; border-bottom-color: var(--current-band-ground, var(--line)); transition: border-color 300ms; }
.pz-nav a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--current-band-ground); text-decoration-thickness: 3px; text-underline-offset: 7px; }
html.pz-motion-enabled .pz-reveal { transform: translateY(16px); transition-delay: var(--reveal-delay, 0ms); }
.pz-batch-content { display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 13px; }
.pz-batch-content p { margin: 0; }
.pz-batch-card { width: 100%; border: 1px solid var(--line); padding: 10px; border-radius: var(--radius-sm); }
.pz-batch-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 6px; min-height: 32px; padding-block: 4px; border-bottom: 1px solid var(--line); }
.pz-batch-row > b { white-space: nowrap; }
.pz-document-marks { display: flex; gap: 6px; white-space: nowrap; }
.pz-document-marks > span { display: flex; align-items: center; gap: 2px; font-size: 10px; }
.pz-document-marks svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.pz-batch-ready { grid-column: 3; grid-row: 1; white-space: nowrap; color: var(--ink-muted); }
.pz-batch-warning { grid-column: 3; grid-row: 1; padding: 2px; font-size: 10px; white-space: nowrap; color: var(--sabio-ink); background: #ffe1bd; }
.pz-document-types { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-document-types span { border: 1px solid var(--line); padding: 4px; border-radius: var(--radius-sm); }
.pz-batch-progress { display: block; height: 3px; background: var(--line); }
.pz-batch-progress i { display: block; height: 100%; background: var(--zone-ink); width: 100%; transform-origin: left; }
.pz-demo--live .pz-batch-progress i { animation: pz-progress-fill 900ms ease-out; }
@keyframes pz-progress-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pz-demo--batch .pz-demo__captions, .pz-demo--motriz .pz-demo__captions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pz-demo--live .pz-batch-content [data-at]:not(.is-on) { display: none; }
.pz-demo:not(.pz-demo--live) .pz-batch-content > :is([data-until], .pz-sabio-review, .pz-sabio-bubble--user, .pz-sabio-attachment) { display: none; }
.pz-motriz-panel--session { grid-column: 1 / -1; }
.pz-session-bar { display: flex; gap: 3px; align-items: stretch; }
.pz-session-segment { padding: 12px 6px; background: var(--ground-soft); border-top: 4px solid var(--zone-action); font-size: 12px; overflow-wrap: anywhere; }
.pz-session-segment--warm { flex: 10; }
.pz-session-segment--strength { flex: 20; }
.pz-session-segment--game { flex: 15; }
.pz-demo--live .pz-session-bar.is-on .pz-session-segment { transform-origin: left; animation: pz-progress-fill 700ms ease-out both; }
.pz-session-segment:nth-child(2) { animation-delay: 100ms; }
.pz-session-segment:nth-child(3) { animation-delay: 200ms; }
/* New messages push older content out of the fixed chat viewport. */
.pz-demo--live .pz-batch-content { height: 440px; justify-content: flex-end; overflow: hidden; }
.pz-demo--live .pz-batch-content > * { flex-shrink: 0; }
.pz-document-slot { display: flex; align-items: center; min-width: 14px; min-height: 14px; }
.pz-document-slot > span { display: flex; align-items: center; gap: 2px; }
.pz-case { align-items: start; }
.pz-case__frame .pz-demo__controls--case { align-self: center; justify-content: center; width: 100%; }
.pz-band .pz-btn:is(.pz-btn--quiet, .pz-btn--secondary) { padding: 0 var(--space-5); min-height: 44px; }
@media (min-width: 960px) {
  .pz-product-hero__copy { position: sticky; top: calc(var(--space-8) + 1px + 24px); }
}
@media (max-width: 959px) {
  .pz-door:nth-child(n) { position: static; top: auto; padding: 16px; gap: 8px; }
  .pz-door .pz-logo { font-size: 28px; }
  .pz-door p { font-size: 15px; line-height: 20px; }
  .pz-door__arrow { font-size: 22px; line-height: 24px; }
}
@media (max-width: 599px) {
  .pz-demo--live .pz-batch-content { height: 400px; }
  .pz-batch-row { min-height: 40px; }
}
.pz-case__frame.pz-demo { background: var(--zone-ground); }
.pz-chat-row { border-top: 1px solid currentColor; padding-top: 32px; }
.pz-split-row h3 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; max-width: 16ch; }
.pz-band--motriz .pz-split-row h3 { font-stretch: 125%; }
.pz-band--sabio .pz-split-row h3 { font-stretch: 100%; }
.pz-band--apps .pz-split-row h3 { font-stretch: 75%; font-size: clamp(32px, 3.6vw, 46px); }
.pz-step-list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.pz-step-list li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 18px; align-items: start; }
.pz-step-list li:nth-child(even) { margin-left: 28px; }
.pz-step-print { width: 22px; height: 44px; color: var(--band-accent); }
.pz-step-list strong { display: block; font-size: 22px; line-height: 1.2; }
.pz-step-list span { display: block; margin-top: 6px; }
@media (min-width: 720px) { .pz-stats { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (min-width: 960px) {
  .pz-doors { grid-template-columns: repeat(3,minmax(0,1fr)); padding-bottom: 64px; align-items: start; }
  .pz-door:nth-child(2) { position: relative; top: 32px; }
  .pz-door:nth-child(3) { position: relative; top: 64px; }
  .pz-case { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 959px) { .pz-motriz-panel--session { grid-column: auto; } }
@media (max-width: 599px) {
  .pz-band { padding-block: 56px; }
  .pz-band:not(.pz-band--hero) { padding-top: 88px; }
  .pz-band .pz-demo { padding: 10px; }
  .pz-document-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pz-batch-row { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pz-band, .pz-nav, .pz-door__arrow { transition: none !important; }
  html.pz-motion-enabled .pz-reveal { transform: none; }
}
.pz-band .pz-logo { color: inherit; }
.pz-band .pz-logo--sabio { font-stretch: 100%; }
.pz-band .pz-door:focus-visible { outline-color: var(--band-ink); outline-offset: -6px; }
.pz-batch-warning { --sabio-ink: oklch(0.24 0.04 255); }
.pz-demo:not(.pz-demo--live) .pz-rodrigo-medical { visibility: hidden; }
.pz-demo:not(.pz-demo--live) .pz-batch-row:last-of-type .pz-batch-ready { display: none; }
.pz-motriz-quality__item--top .pz-motriz-quality__track i { background: var(--band-accent); }
.pz-case__frame { min-height: 0; }
@media (min-width: 600px) and (max-width: 959px) { .pz-document-label { font-size: 10px; } }
@media (min-width: 900px) and (max-width: 959px) { .pz-case { grid-template-columns: minmax(0,1fr); } }
@media (min-width: 960px) { .pz-demo--batch .pz-sabio-window__body { grid-template-columns: minmax(0,.24fr) minmax(0,1fr); } }
.pz-band .display-xl { font-size: clamp(44px, 6vw, 64px); }
.pz-band .display-l { font-size: clamp(32px, 4vw, 44px); }
.pz-band .pz-motriz-stage { background: var(--raised); }
.pz-band .pz-case__story { color: var(--band-ink); }
#sobre { scroll-margin-top: 96px; }
.pz-demo--batch .pz-sabio-review__actions span { font: inherit; padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--raised); color: var(--ink); opacity: 1; }
.pz-demo--batch .pz-sabio-review__actions .pz-sabio-review__confirm { background: var(--zone-action); color: var(--zone-on-action); border-color: var(--zone-action); }

/* Terms tables: on narrow screens each row becomes a labelled block instead of a sideways scroll. */
@media (max-width: 599px) {
  .pz-legal .pz-table-wrap { overflow: visible; }
  .pz-legal table, .pz-legal tbody, .pz-legal tr, .pz-legal td { display: block; width: 100%; min-width: 0; }
  .pz-legal td { font-size: 15px; line-height: 22px; }
  .pz-legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pz-legal tr { padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
  .pz-legal td { padding: var(--space-1) 0; border: 0; }
  .pz-legal td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; color: var(--ink-muted); font-size: 14px; font-weight: 600; }
  .pz-legal td:first-child { font-weight: 650; }
}

/* Straight bands, a walking Pegada, and content-sized demo panels. */
.pz-band--hero > .pz-container { position: relative; }
.pz-hero-copy { position: relative; padding-top: 68px; }
.pz-proof { display: grid; gap: 16px; margin: 0; }
.pz-proof > div { border-top: 1px solid currentColor; padding-top: 12px; }
.pz-proof dt { font-weight: 700; }
.pz-proof dd { margin: 4px 0 0; }
.pz-proof--stack dd { font-size: 18px; line-height: 1.4; }
.pz-footprint-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pz-footprint-trail { position: absolute; top: 0; right: 0; width: 220px; height: 64px; pointer-events: none; color: var(--band-ink); }
.pz-footprint { position: absolute; height: 40px; width: 20px; opacity: .15; transform: rotate(var(--print-angle, 0deg)); transform-origin: center; transition: opacity 320ms ease, transform 320ms ease; }
.pz-footprint-trail .pz-footprint--1 { left: 0; top: 24px; opacity: .15; }
.pz-footprint-trail .pz-footprint--2 { left: 36px; top: 12px; opacity: .3; }
.pz-footprint-trail .pz-footprint--3 { left: 72px; top: 18px; opacity: .45; }
.pz-footprint-trail .pz-footprint--4 { left: 108px; top: 6px; opacity: .6; }
.pz-footprint-trail .pz-footprint--5 { left: 144px; top: 12px; opacity: .75; }
.pz-footprint-trail .pz-footprint--6 { left: 180px; top: 0; opacity: .9; }
.pz-footprint-trail.is-live .pz-footprint,
.pz-footprint-walk.is-live .pz-footprint { opacity: 0; transform: translate(-4px, 4px) rotate(var(--print-angle, 0deg)); }
.pz-footprint-trail.is-live .pz-footprint.is-printed,
.pz-footprint-walk.is-live .pz-footprint.is-printed { opacity: 1; transform: rotate(var(--print-angle, 0deg)); }
/* Seam walks: four prints cross each band boundary, two in the band being left and two in the band being entered.
   Prints are laid out walking up inside the box, which is turned about 180deg so the walk heads down the page.
   Each half takes the colour of the other band, so the prints stay visible on both grounds. */
.pz-footprint-walk { --step: 44px; --print-w: 20px; --print-h: 40px; --gait: 24px; --above: var(--band-ink); --below: var(--band-ink); position: absolute; z-index: 2; top: calc(var(--step) * -2); width: calc(var(--print-w) + var(--gait)); height: calc(var(--step) * 4); pointer-events: none; transform: rotate(var(--walk-turn, 180deg)); }
.pz-footprint-walk .pz-footprint { width: var(--print-w); height: var(--print-h); opacity: .9; }
.pz-footprint-walk .pz-footprint--1 { top: calc(var(--step) * 3); left: 0; color: var(--above); }
.pz-footprint-walk .pz-footprint--2 { top: calc(var(--step) * 2); left: var(--gait); color: var(--above); }
.pz-footprint-walk .pz-footprint--3 { top: var(--step); left: 0; color: var(--below); }
.pz-footprint-walk .pz-footprint--4 { top: 0; left: var(--gait); color: var(--below); }
.pz-footprint-walk--forward { right: 22%; --walk-turn: 196deg; }
.pz-footprint-walk--reverse { left: 34%; --walk-turn: 166deg; }
.pz-footprint-walk--curve { right: 12%; --walk-turn: 172deg; }
.pz-footprint-walk--reverse-curve { left: 18%; --walk-turn: 190deg; }
.pz-footprint-walk[data-footprint-walk="sabio"] { --above: var(--sabio-orange); --below: oklch(0.205 0.01 275); }
.pz-footprint-walk[data-footprint-walk="motriz"] { --above: #0f6b4f; --below: var(--sabio-orange); }
.pz-footprint-walk[data-footprint-walk="apps"] { --above: #fff; --below: #3ccf91; }
.pz-contact-section { position: relative; }
.pz-footprint-walk[data-footprint-walk="contact"] { --above: #fff; --below: var(--rmb-navy); }
.pz-working p { display: flex; align-items: center; gap: 6px; margin-block: 8px; }
.pz-activity { display: inline-flex; gap: 3px; }
.pz-activity i { width: 4px; height: 4px; background: currentColor; border-radius: 50%; animation: pz-activity 900ms infinite alternate; }
.pz-activity i:nth-child(2) { animation-delay: 200ms; }
.pz-activity i:nth-child(3) { animation-delay: 400ms; }
@keyframes pz-activity { from { opacity: .2; } to { opacity: 1; } }
.pz-test-diagram svg { display: block; width: 100%; height: auto; font-family: var(--font-display); }
.pz-motriz-panel--suggest { grid-column: 1 / -1; }
.pz-motriz-panel--suggest .pz-motriz-tests li { flex-wrap: wrap; }
.pz-demo:not(.pz-demo--live) .pz-working { display: none; }
@media (min-width: 720px) {
  .pz-proof:not(.pz-proof--stack) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pz-proof:not(.pz-proof--stack) > div { border-top: 0; border-left: 1px solid currentColor; padding: 0 0 0 16px; }
}
@media (min-width: 960px) {
  .pz-hero-copy { width: 60%; padding-top: 0; }
  .pz-footprint-trail { width: 36%; height: 300px; top: 24px; }
  .pz-footprint { height: 72px; width: 36px; }
  .pz-footprint-trail .pz-footprint--1 { left: 0; top: 210px; }
  .pz-footprint-trail .pz-footprint--2 { left: 16%; top: 160px; }
  .pz-footprint-trail .pz-footprint--3 { left: 32%; top: 150px; }
  .pz-footprint-trail .pz-footprint--4 { left: 48%; top: 100px; }
  .pz-footprint-trail .pz-footprint--5 { left: 64%; top: 80px; }
  .pz-footprint-trail .pz-footprint--6 { left: 80%; top: 30px; }
}
@media (max-width: 599px) {
  .pz-footprint-walk { --step: 29px; --print-w: 13px; --print-h: 26px; --gait: 16px; }
  .pz-footprint-walk--forward { right: 14%; }
  .pz-footprint-walk--curve { right: 8%; }
  .pz-footprint-walk--reverse-curve { left: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes pz-demo-enter { from { opacity: 0; } to { opacity: 1; } }
  html.pz-motion-enabled .pz-reveal { transform: none; transition: opacity 320ms ease-out; }
  .pz-footprint { transform: none; transition: opacity 320ms ease; }
  .pz-footprint-trail.is-live .pz-footprint,
  .pz-footprint-walk.is-live .pz-footprint { transform: none; transition: opacity 320ms ease; }
  .pz-door:is(:hover,:focus-visible) .pz-door__arrow { transform: none; }
  .pz-demo--live .pz-session-bar.is-on .pz-session-segment { animation: pz-demo-enter 700ms ease-out both; }
  .pz-motriz-flow__connector path.is-on { animation: pz-demo-enter 620ms ease-out; stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes pz-demo-dot { to { opacity: .35; } }
}
