/*
 * Laudivo — site público: mockups de produto.
 *
 * O aparelho, as telas e as páginas do relatório são desenhados em HTML e CSS
 * com os mesmos rótulos, cores e proporções da aplicação. Tudo é medido em
 * "em" a partir de --u (1em = 10 px da tela real), para que cada cena escolha
 * a escala sem redesenhar nada.
 */

/* ---------- Aparelho ---------- */

.lp-phone {
  position: relative;
  width: 36em;
  aspect-ratio: 36 / 75;
  padding: 1.1em;
  border-radius: 5.6em;
  background: var(--c-ink);
  box-shadow: inset 0 0 0 0.15em rgb(255 255 255 / 0.16), inset 0 0 0 0.45em var(--c-ink);
  font-size: var(--u, 7.5px);
}

.lp-phone--large {
  filter: drop-shadow(0 2em 3.5em rgb(0 0 0 / 0.35));
}

.lp-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 4.5em;
  background: var(--white);
  color: var(--navy-900);
  line-height: 1.35;
  overflow: hidden;
}

/* Barra de início do sistema. */
.lp-phone__screen::after {
  content: "";
  position: absolute;
  z-index: 3;
  bottom: 0.7em;
  left: 50%;
  width: 12em;
  height: 0.45em;
  border-radius: 1em;
  background: var(--navy-900);
  transform: translateX(-50%);
}

.lp-phone .icon,
.lp-touch .icon {
  width: 2em;
  height: 2em;
}

.m-status {
  position: relative;
  z-index: 2;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 4.6em;
  padding: 0.4em 2.8em 0 3.2em;
  background: var(--white);
}

.m-status > span:first-child {
  font-size: 1.4em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.m-status__island {
  position: absolute;
  top: 1.1em;
  left: 50%;
  width: 9.5em;
  height: 2.7em;
  border-radius: 2em;
  background: var(--c-ink);
  transform: translateX(-50%);
}

.m-status__icons {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.m-sig {
  width: 1.7em;
  height: 1.1em;
  background: linear-gradient(to right, currentColor 0 19%, transparent 19% 27%, currentColor 27% 46%, transparent 46% 54%, currentColor 54% 73%, transparent 73% 81%, currentColor 81%);
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

.m-bat {
  position: relative;
  width: 2.5em;
  height: 1.2em;
  border: 0.13em solid currentColor;
  border-radius: 0.38em;
  opacity: 0.9;
}

.m-bat::after {
  content: "";
  position: absolute;
  inset: 0.14em 28% 0.14em 0.14em;
  border-radius: 0.16em;
  background: currentColor;
}

/* ---------- Execução ---------- */

.m-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 1.2em 0 0.6em;
}

.m-iconbtn {
  display: grid;
  flex: none;
  place-items: center;
  width: 4.4em;
  height: 4.4em;
  color: var(--slate-700);
}

.m-head__text {
  flex: 1;
  min-width: 0;
}

.m-head__room {
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.m-head__pos {
  color: var(--slate-600);
  font-size: 1.3em;
}

.m-head__room,
.m-head__pos {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-sync,
.m-sync__on,
.m-sync__off {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3em;
  padding: 0.3em 0.6em;
  border-radius: 99em;
  color: var(--green-700);
  font-size: 1.3em;
  font-weight: 500;
  white-space: nowrap;
}

.m-sync .icon {
  width: 1.25em;
  height: 1.25em;
}

.m-sync--live {
  display: grid;
  padding: 0;
  font-size: 1em;
}

.m-sync__on,
.m-sync__off {
  grid-area: 1 / 1;
  justify-self: end;
}

.m-sync__off {
  background: var(--amber-50);
  color: var(--amber-800);
  opacity: 0;
}

.m-progress,
.m-record__progress {
  flex: none;
  height: 0.6em;
  border-radius: 1em;
  background: var(--slate-100);
  overflow: hidden;
}

.m-progress {
  margin: 1em 1.6em 1.2em;
}

.m-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-600);
}

.m-progress__fill--4 {
  width: 4%;
}

.m-progress__fill--22 {
  width: 22%;
}

.m-rooms {
  display: flex;
  flex: none;
  gap: 0.8em;
  padding: 0 1.6em 1.2em;
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
}

.m-rooms > span {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5em;
  min-height: 2.57em;
  padding: 0 0.86em;
  border: 1px solid var(--slate-300);
  border-radius: 99em;
  color: var(--slate-700);
  font-size: 1.4em;
  font-weight: 500;
}

.m-rooms b {
  font-size: 0.857em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.m-rooms .is-current {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.m-rooms .is-done {
  border-color: transparent;
  background: var(--green-50);
  color: var(--green-700);
}

.m-rooms .icon {
  width: 1.1em;
  height: 1.1em;
}

.m-item {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 1.2em;
  padding: 2.2em 1.6em;
  border-bottom: 1px solid var(--slate-200);
}

.m-item__name {
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.m-conds {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8em;
}

.m-conds > span {
  position: relative;
  display: flex;
  grid-column: span 2;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-height: 3.43em;
  border: 1px solid var(--slate-300);
  border-radius: 0.57em;
  background: var(--white);
  color: var(--slate-700);
  font-size: 1.4em;
  font-weight: 600;
  line-height: 1.15;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.m-conds > .is-wide {
  grid-column: span 3;
}

.m-conds .icon {
  width: 1.15em;
  height: 1.15em;
}

.m-conds .is-good {
  --cond: var(--green-700);
  --cond-bg: var(--green-50);
}

.m-conds .is-fair {
  --cond: var(--amber-800);
  --cond-bg: var(--amber-50);
}

.m-conds .is-damaged {
  --cond: var(--red-700);
  --cond-bg: var(--red-50);
}

.m-conds .is-good,
.m-conds .is-fair,
.m-conds .is-damaged {
  border-color: var(--cond);
  background: var(--cond-bg);
  box-shadow: inset 0 0 0 1px var(--cond);
  color: var(--cond);
}

.m-photos {
  display: flex;
  gap: 0.8em;
}

.m-photo {
  flex: none;
  width: 7.6em;
  height: 7.6em;
  border-radius: 0.6em;
  background-color: var(--slate-100);
  background-repeat: no-repeat;
}

/* Recortes das fotos dos ambientes, usados nas miniaturas e no relatório. */
.m-photo--floor,
.p-photo__img--floor {
  background-image: url("/assets/images/landing/room-sala.webp");
  background-position: 58% 100%;
  background-size: 260%;
}

.m-photo--wall,
.p-photo__img--wall {
  background-image: url("/assets/images/landing/room-sala.webp");
  background-position: 5% 50%;
  background-size: 300%;
}

.p-photo__img--window {
  background-image: url("/assets/images/landing/room-sala.webp");
  background-position: 72% 36%;
  background-size: 240%;
}

.m-photo--sink,
.p-photo__img--sink {
  background-image: url("/assets/images/landing/room-cozinha.webp");
  background-position: 22% 53%;
  background-size: 260%;
}

.m-photo--counter,
.p-photo__img--counter {
  background-image: url("/assets/images/landing/room-cozinha.webp");
  background-position: 42% 83%;
  background-size: 260%;
}

/* Botão de foto: o enquadramento da marca, como na aplicação. */
.m-add {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  width: 5.85em;
  height: 5.85em;
  border-radius: 0.46em;
  background: var(--mint-50);
  color: var(--teal-800);
  font-size: 1.3em;
  font-weight: 600;
}

.m-add .icon {
  width: 1.6em;
  height: 1.6em;
}

.m-add i {
  position: absolute;
  width: 0.85em;
  height: 0.85em;
  border: 0 solid var(--teal-600);
}

.m-add i:nth-child(1) {
  top: 0.5em;
  left: 0.5em;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
  border-top-left-radius: 0.25em;
}

.m-add i:nth-child(2) {
  top: 0.5em;
  right: 0.5em;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
  border-top-right-radius: 0.25em;
}

.m-add i:nth-child(3) {
  right: 0.5em;
  bottom: 0.5em;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
  border-bottom-right-radius: 0.25em;
}

.m-add i:nth-child(4) {
  bottom: 0.5em;
  left: 0.5em;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
  border-bottom-left-radius: 0.25em;
}

.m-note {
  padding: 0.7em 0.86em;
  border: 1px solid var(--slate-300);
  border-radius: 0.57em;
  color: var(--slate-700);
  font-size: 1.4em;
  line-height: 1.4;
}

.m-foot {
  position: relative;
  z-index: 2;
  display: grid;
  flex: none;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2em;
  margin-top: auto;
  padding: 1.2em 1.6em 2.4em;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}

.m-foot--stack {
  grid-template-columns: 1fr;
  gap: 0.8em;
}

.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3em;
  padding: 0 1em;
  border-radius: 0.5em;
  background: var(--teal-600);
  color: var(--white);
  font-size: 1.6em;
  font-weight: 600;
  white-space: nowrap;
}

.m-btn .icon {
  width: 1.25em;
  height: 1.25em;
}

.m-btn--secondary {
  width: 3em;
  padding: 0;
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--navy-900);
}

.m-btn--disabled {
  background: var(--slate-100);
  color: var(--slate-500);
}

.m-hint {
  color: var(--slate-600);
  font-size: 1.25em;
  text-align: center;
}

/* ---------- Execução no formato atual: item em foco e linhas ---------- */

/* Respostas principais com ponto na cor; exceções mais discretas. */
.m-conds > span:not(.is-wide)::before {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--dot);
}

.m-conds > span:nth-child(1) {
  --dot: var(--green-700);
}

.m-conds > span:nth-child(2) {
  --dot: var(--amber-800);
}

.m-conds > span:nth-child(3) {
  --dot: var(--red-700);
}

.m-conds > :is(.is-good, .is-fair, .is-damaged)::before {
  display: none;
}

.m-conds > .is-wide {
  min-height: 3em;
  border-color: transparent;
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 500;
}

.js .lp-demo[data-phase="0"] .m-conds > span:not(.is-wide)::before {
  display: block;
}

.m-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8em;
  min-height: 0;
  padding: 1.6em 1.2em;
  background: var(--canvas);
  overflow: hidden;
}

.m-roomhead {
  padding: 0 0.4em 0.4em;
}

.m-roomhead__title {
  font-size: 2.3em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.m-roomhead__meta {
  color: var(--slate-700);
  font-size: 1.3em;
}

.m-row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1em;
  min-height: 5.2em;
  padding: 0 1.4em;
  border: 1px solid var(--slate-200);
  border-radius: 1.2em;
  background: var(--white);
}

.m-row > span {
  flex: 1;
  min-width: 0;
  font-size: 1.55em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.m-row > em {
  color: var(--slate-600);
  font-size: 1.25em;
  font-style: normal;
}

.m-ring {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  border: 0.15em solid var(--slate-300);
  border-radius: 50%;
}

.m-ring .icon {
  display: none;
  width: 2em;
  height: 2em;
}

.m-ring--good,
.m-ring--fair {
  border: 0;
}

.m-ring--good .icon,
.m-ring--fair .icon {
  display: block;
}

.m-ring--good {
  color: var(--green-700);
}

.m-ring--fair {
  color: var(--amber-800);
}

.m-tag {
  flex: none;
  padding: 0.3em 0.85em;
  border-radius: 99em;
  font-size: 1.15em;
  font-weight: 600;
}

.m-tag--good {
  background: var(--green-50);
  color: var(--green-700);
}

.m-card {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 1.2em;
  padding: 1.4em;
  border: 1px solid var(--slate-300);
  border-radius: 1.2em;
  background: var(--white);
  box-shadow: 0 0.4em 1.6em rgb(var(--c-shadow) / 0.1);
}

.m-card__head {
  display: flex;
  align-items: center;
  gap: 1em;
}

.m-card__head > span {
  flex: 1;
  font-size: 1.75em;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.m-card__chevron {
  color: var(--slate-500);
  transform: rotate(180deg);
}

.m-chips {
  display: flex;
  gap: 0.8em;
}

.m-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.55em 1.1em 0.55em 0.9em;
  border: 1px solid var(--slate-300);
  border-radius: 99em;
  font-size: 1.25em;
  font-weight: 500;
}

.m-chips .icon {
  width: 1.2em;
  height: 1.2em;
}

/* As telas trocadas pelo seletor de recursos começam abaixo da barra de status. */
.m-screen .m-body {
  padding-top: 1.4em;
}

/* ---------- Telas do aparelho da seção "No celular" ---------- */

.m-screen {
  position: absolute;
  z-index: 1;
  inset: 4.6em 0 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.4em);
  transition: opacity 350ms var(--ease), transform 600ms var(--ease-out), visibility 0s 350ms;
}

[data-view="1"] .m-screen--run,
[data-view="2"] .m-screen--run,
[data-view="3"] .m-screen--home,
[data-view="4"] .m-screen--review {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* Recurso 1: o toque em "Bom" fecha o item e o próximo pendente ganha foco. */
[data-view="1"] .m-screen--run .m-row--next {
  animation: m-next 2400ms var(--ease-out) infinite;
}

@keyframes m-next {
  0%,
  30% {
    border-color: var(--slate-200);
    box-shadow: none;
  }

  45%,
  80% {
    border-color: var(--teal-600);
    box-shadow: 0 0 0 0.3em rgb(8 127 120 / 0.14);
  }

  100% {
    border-color: var(--slate-200);
    box-shadow: none;
  }
}

.is-target::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.2em;
  height: 3.2em;
  margin: -1.6em 0 0 -1.6em;
  border-radius: 50%;
  background: rgb(var(--c-shadow) / 0.22);
  opacity: 0;
  pointer-events: none;
}

[data-view="1"] .m-screen--run .is-target::after {
  animation: m-tap 2400ms var(--ease-out) infinite;
}

@keyframes m-tap {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  12% {
    opacity: 1;
  }

  45%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes m-ring {
  0% {
    box-shadow: 0 0 0 0 rgb(8 127 120 / 0.45);
  }

  70%,
  100% {
    box-shadow: 0 0 0 0.9em rgb(8 127 120 / 0);
  }
}

/* Recurso 2: a conexão cai e volta; o indicador acompanha. */
[data-view="2"] .m-sync__off {
  animation: m-offline 5200ms var(--ease) both;
}

[data-view="2"] .m-sync__on {
  animation: m-online 5200ms var(--ease) both;
}

@keyframes m-offline {
  0%,
  8% {
    opacity: 0;
  }

  14%,
  62% {
    opacity: 1;
  }

  70%,
  100% {
    opacity: 0;
  }
}

@keyframes m-online {
  0%,
  8% {
    opacity: 1;
  }

  14%,
  62% {
    opacity: 0;
  }

  70%,
  100% {
    opacity: 1;
  }
}

/* Início */

.m-top {
  flex: none;
  padding: 1.4em 1.6em 1.2em;
}

.m-top p {
  font-size: 2.3em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.m-top span {
  display: block;
  color: var(--slate-600);
  font-size: 1.3em;
}

.m-stats {
  display: grid;
  flex: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em;
  padding: 0 1.6em;
}

.m-stats > span {
  display: flex;
  flex-direction: column;
  padding: 0.9em 1em;
  border: 1px solid var(--slate-200);
  border-radius: 0.95em;
  color: var(--slate-700);
  font-size: 1.25em;
}

.m-stats b {
  color: var(--navy-900);
  font-size: 1.9em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.m-section {
  flex: none;
  padding: 1.2em 1.07em 0.55em;
  font-size: 1.5em;
  font-weight: 600;
}

.m-record {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.5em;
  margin: 0 1.6em;
  padding: 1.3em;
  border: 1px solid var(--slate-200);
  border-radius: 1.2em;
}

.m-record__title {
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.25;
}

.m-record__meta {
  color: var(--slate-600);
  font-size: 1.3em;
}

.m-record__progress {
  margin-top: 0.3em;
}

.m-badge {
  align-self: flex-start;
  padding: 0.2em 0.75em;
  border-radius: 99em;
  background: var(--mint-100);
  color: var(--teal-800);
  font-size: 1.2em;
  font-weight: 600;
}

.m-badge--done {
  background: var(--green-50);
  color: var(--green-700);
}

.m-record--focus {
  border-color: var(--teal-600);
}

[data-view="3"] .m-record--focus {
  animation: m-ring 2200ms var(--ease-out) infinite;
}

.m-tabbar {
  position: relative;
  z-index: 2;
  display: grid;
  flex: none;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  padding: 0.9em 0.8em 2.4em;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}

.m-tabbar > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  color: var(--slate-600);
  font-size: 1.1em;
  font-weight: 500;
}

.m-tabbar .icon {
  width: 2em;
  height: 2em;
}

.m-tabbar .is-current {
  color: var(--teal-700);
}

/* Revisão */

.m-top--page {
  padding-bottom: 0.4em;
}

.m-check {
  flex: none;
  margin: 0 1.6em;
  border: 1px solid var(--slate-200);
  border-radius: 1.2em;
  overflow: hidden;
}

.m-check__row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1em;
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1.25;
}

.m-check__row + .m-check__sub,
.m-check__sub + .m-check__sub,
.m-check__sub + .m-check__row {
  border-top: 1px solid var(--slate-200);
}

.m-check__row .icon {
  width: 1.5em;
  height: 1.5em;
}

.m-check__row b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.m-check__row--danger .icon {
  color: var(--red-700);
}

.m-check__row--warning .icon {
  color: var(--amber-800);
}

.m-check__sub {
  padding: 0.7em 1em 0.7em 3.4em;
  color: var(--slate-700);
  font-size: 1.25em;
}

.m-summary {
  display: grid;
  flex: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8em;
  margin: 0 1.6em;
}

.m-summary > span {
  display: flex;
  flex-direction: column;
  padding: 0.8em 0.9em;
  border-left: 0.25em solid var(--cond);
  border-radius: 0.5em;
  background: var(--canvas);
  color: var(--slate-700);
  font-size: 1.2em;
}

.m-summary b {
  color: var(--navy-900);
  font-size: 1.8em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.m-summary .is-good {
  --cond: var(--green-700);
}

.m-summary .is-fair {
  --cond: var(--amber-800);
}

.m-summary .is-damaged {
  --cond: var(--red-700);
}

/* ---------- Cartão de toque da demonstração ---------- */

.lp-touch {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  padding: 2em;
  border-radius: 1.6em;
  background: var(--white);
  box-shadow: 0 1.5em 3.5em rgb(0 0 0 / 0.28);
  color: var(--navy-900);
  font-size: clamp(8px, 2.3vw, 10.5px);
  line-height: 1.35;
}

.js .lp-touch {
  /* Com JavaScript o cartão é um bloco animado; o conteúdo segue em coluna. */
  display: flex;
}

.lp-touch__head {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
}

.lp-touch__room {
  color: var(--slate-600);
  font-size: 1.3em;
}

.lp-touch__head .m-sync {
  margin-left: auto;
  align-self: center;
}

.lp-touch__extra {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

/* Fases da demonstração: 0 ainda sem toque, 1 tocou, 2 salvo e escrito. */
.js .lp-demo[data-phase="0"] .m-conds > span {
  border-color: var(--slate-300);
  background: var(--white);
  box-shadow: none;
  color: var(--slate-700);
}

.js .lp-demo[data-phase="0"] .m-conds .icon {
  display: none;
}

.js .lp-touch .m-sync,
.js .lp-touch__extra {
  transition: opacity 350ms var(--ease), transform 500ms var(--ease-out);
}

.js .lp-demo:not([data-phase="2"]) .lp-touch .m-sync,
.js .lp-demo:not([data-phase="2"]) .lp-touch__extra {
  opacity: 0;
}

.js .lp-demo:not([data-phase="2"]) .lp-touch__extra {
  transform: translateY(0.6em);
}

.js .lp-demo[data-phase="1"] .is-target::after {
  animation: m-tap 900ms var(--ease-out) both;
}

/* ---------- Página do relatório ---------- */

.lp-page {
  display: flex;
  flex-direction: column;
  width: 42em;
  aspect-ratio: 210 / 297;
  padding: 3.2em 3.2em 2.6em;
  border-radius: 0.35em;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(var(--c-shadow) / 0.1), 0 1.6em 4em rgb(var(--c-shadow) / 0.18);
  color: var(--navy-900);
  font-size: var(--u, 7.5px);
  line-height: 1.35;
}

.p-run {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.8em;
  padding-bottom: 0.9em;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-size: 1.05em;
}

.p-h {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.p-h b {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 0.3em;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.8em;
  font-weight: 600;
}

.p-room {
  margin-top: 1em;
  padding-bottom: 0.45em;
  border-bottom: 1.5px solid var(--navy-900);
  font-size: 1.3em;
  font-weight: 600;
}

.p-tr {
  display: grid;
  grid-template-columns: 8.2em 6.6em minmax(0, 1fr) 2.4em;
  gap: 0.8em;
  align-items: baseline;
  padding: 0.6em 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 1.05em;
  line-height: 1.3;
}

.p-tr > span:first-child {
  font-weight: 600;
}

.p-tr > span:nth-child(3) {
  color: var(--slate-700);
}

.p-tr > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.p-tr--head > span:nth-child(n) {
  color: var(--slate-600);
  font-size: 0.92em;
  font-weight: 600;
}

.p-good,
.p-fair,
.p-damaged {
  font-weight: 600;
}

.p-good {
  color: var(--green-700);
}

.p-fair {
  color: var(--amber-800);
}

.p-damaged {
  color: var(--red-700);
}

.p-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-top: 1.6em;
}

.p-photos--large {
  grid-template-columns: 1fr;
  gap: 1.4em;
}

.p-photo span {
  display: block;
  margin-top: 0.4em;
  color: var(--slate-700);
  font-size: 1em;
}

.p-photo__img {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 0.25em;
  background-color: var(--slate-100);
  background-repeat: no-repeat;
}

.p-photos--large .p-photo__img {
  aspect-ratio: 16 / 10;
}

.p-foot {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.9em;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-size: 1em;
}

/* Capa */

.p-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.7em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.p-brand .lp-symbol {
  width: 1.5em;
  height: 1.5em;
}

.p-eyebrow {
  margin-top: 7.5em;
  color: var(--teal-700);
  font-size: 1.2em;
  font-weight: 600;
}

.p-title {
  margin-top: 0.15em;
  font-size: 3.4em;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.p-property {
  margin-top: 1em;
  font-size: 1.6em;
  font-weight: 600;
}

.p-address {
  color: var(--slate-700);
  font-size: 1.2em;
}

.p-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em 1.6em;
  margin-top: auto;
  margin-bottom: 2em;
}

.p-facts > div {
  display: flex;
  flex-direction: column;
  padding-top: 0.6em;
  border-top: 1px solid var(--slate-200);
}

.p-facts span {
  color: var(--slate-600);
  font-size: 1em;
}

.p-facts b {
  font-size: 1.35em;
  font-weight: 600;
}

.lp-page--cover .p-foot {
  margin-top: 0;
}

/* ---------- Planta ---------- */

.lp-plan {
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
}

.lp-plan__room {
  cursor: pointer;
}

.lp-plan__room rect,
.lp-plan__hall {
  fill: var(--canvas);
}

.lp-plan__room rect {
  transition: fill 250ms var(--ease);
}

.lp-plan__room:hover rect {
  fill: var(--mint-50);
}

.lp-plan__room text {
  fill: var(--navy-900);
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
  pointer-events: none;
}

.lp-plan__room .lp-plan__count {
  fill: var(--slate-600);
  font-size: 11.5px;
  font-weight: 500;
}

.lp-plan__corners {
  fill: none;
  stroke: var(--teal-600);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 250ms var(--ease);
}

.lp-rooms[data-room="sala"] [data-plan="sala"] rect,
.lp-rooms[data-room="cozinha"] [data-plan="cozinha"] rect,
.lp-rooms[data-room="quartos"] [data-plan="quartos"] rect,
.lp-rooms[data-room="banheiro"] [data-plan="banheiro"] rect,
.lp-rooms[data-room="servico"] [data-plan="servico"] rect {
  fill: var(--mint-100);
}

.lp-rooms[data-room="sala"] [data-plan="sala"] .lp-plan__corners,
.lp-rooms[data-room="cozinha"] [data-plan="cozinha"] .lp-plan__corners,
.lp-rooms[data-room="quartos"] [data-plan="quartos"] .lp-plan__corners,
.lp-rooms[data-room="banheiro"] [data-plan="banheiro"] .lp-plan__corners,
.lp-rooms[data-room="servico"] [data-plan="servico"] .lp-plan__corners {
  opacity: 1;
}

.lp-plan__walls {
  fill: none;
  stroke: var(--navy-900);
  stroke-width: 6;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  pointer-events: none;
}

.js .lp-plan__walls {
  transition: stroke-dashoffset 1800ms cubic-bezier(0.65, 0, 0.35, 1) 200ms;
}

.js .lp-rooms:not(.is-in) .lp-plan__walls {
  stroke-dashoffset: 1;
}

.js .lp-plan__room text,
.js .lp-plan__doors,
.js .lp-plan__windows,
.js .lp-plan__detail,
.js .lp-plan__entry {
  transition: opacity 600ms var(--ease) 1400ms;
}

.js .lp-rooms:not(.is-in) :is(.lp-plan__room text, .lp-plan__doors, .lp-plan__windows, .lp-plan__detail, .lp-plan__entry) {
  opacity: 0;
}

.lp-plan__doors {
  fill: none;
  stroke: var(--slate-500);
  stroke-width: 1.25;
  pointer-events: none;
}

.lp-plan__windows {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  pointer-events: none;
}

.lp-plan__detail {
  fill: none;
  stroke: var(--slate-300);
  stroke-width: 1.25;
  pointer-events: none;
}

.lp-plan__entry {
  cursor: pointer;
}

.lp-plan__entry circle {
  fill: var(--white);
  stroke: var(--navy-900);
  stroke-width: 1.5;
  transition: fill 250ms var(--ease), stroke 250ms var(--ease);
}

.lp-plan__entry path {
  fill: var(--navy-900);
  transition: fill 250ms var(--ease);
}

.lp-plan__entry:hover circle {
  fill: var(--mint-100);
}

.lp-rooms[data-room="chaves"] .lp-plan__entry circle {
  fill: var(--teal-600);
  stroke: var(--teal-600);
}

.lp-rooms[data-room="chaves"] .lp-plan__entry path {
  fill: var(--white);
}

/* ---------- Passos: pequenas demonstrações com cursor ---------- */

/*
 * Cada cartão mostra um gesto: o cursor chega, clica e a tela responde. O
 * estilo-base é sempre o estado final; a animação parte do "antes". Sem
 * JavaScript ou com movimento reduzido, fica o estado final, parado.
 */

.s-ui {
  --from: 5.5em 3.5em;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  width: 100%;
  max-width: 19em;
  padding: 1.1em;
  border-radius: 1em;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(var(--c-shadow) / 0.06), 0 1em 2.4em rgb(var(--c-shadow) / 0.12);
  color: var(--navy-900);
  font-size: 0.75rem;
  line-height: 1.35;
}

.s-ui .icon {
  width: 1.25em;
  height: 1.25em;
}

.s-field {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.55em 0.8em;
  border: 1px solid var(--slate-200);
  border-radius: 0.6em;
  font-weight: 500;
}

.s-field span {
  color: var(--slate-600);
  font-size: 0.86em;
  font-weight: 400;
}

.s-field--select {
  background:
    linear-gradient(45deg, transparent 50%, var(--slate-500) 50%) right 1.15em center / 0.4em 0.4em no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--slate-500) 50%) right 0.8em center / 0.4em 0.4em no-repeat;
}

.s-swap {
  position: relative;
  display: grid;
}

.s-swap > * {
  grid-area: 1 / 1;
}

.s-button,
.s-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 2.9em;
  padding: 0 0.8em;
  border-radius: 0.6em;
  font-weight: 600;
  white-space: nowrap;
}

.s-button {
  background: var(--teal-600);
  color: var(--white);
  opacity: 0;
}

.s-done {
  background: var(--green-50);
  color: var(--green-700);
}

.s-button--light {
  background: var(--white);
  color: var(--navy-900);
}

.s-done--light {
  background: rgb(255 255 255 / 0.14);
  color: var(--white);
}

.s-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15em;
  font-weight: 600;
}

.s-saved {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--green-700);
  font-size: 0.8em;
  font-weight: 500;
}

.s-conds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5em;
}

.s-conds > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-height: 2.9em;
  border: 1px solid var(--slate-300);
  border-radius: 0.6em;
  color: var(--slate-700);
  font-size: 0.86em;
  font-weight: 600;
  white-space: nowrap;
}

/* O ponto na cor da condição, como no seletor da aplicação. */
.s-conds > span::before {
  content: "";
  flex: none;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--dot);
}

.s-conds > span:nth-child(1) {
  --dot: var(--green-700);
}

.s-conds > span:nth-child(2) {
  --dot: var(--amber-800);
}

.s-conds > span:nth-child(3) {
  --dot: var(--red-700);
}

.s-conds > .s-pick {
  position: relative;
  border-color: var(--green-700);
  background: var(--green-50);
  box-shadow: inset 0 0 0 1px var(--green-700);
  color: var(--green-700);
}

.s-conds > .s-pick::before {
  width: 0;
  margin-right: -0.3em;
  opacity: 0;
}

.s-line {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.6em 0.8em;
  border: 1px solid var(--slate-200);
  border-radius: 0.6em;
  font-weight: 600;
}

.s-line em {
  margin-left: auto;
  color: var(--slate-600);
  font-size: 0.86em;
  font-style: normal;
  font-weight: 500;
}

.s-line--done .icon {
  color: var(--green-700);
}

.s-line--done em {
  padding: 0.1em 0.6em;
  border-radius: 99em;
  background: var(--green-50);
  color: var(--green-700);
}

.s-ring {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  border: 1.5px solid var(--slate-300);
  border-radius: 50%;
}

.s-open {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0.75em;
  border: 1px solid var(--slate-300);
  border-radius: 0.7em;
  box-shadow: 0 0.3em 1em rgb(var(--c-shadow) / 0.08);
}

.s-pick .icon {
  width: 1.05em;
  height: 1.05em;
}

.s-row {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.6em 0.8em;
  border: 1px solid var(--slate-200);
  border-radius: 0.6em;
  color: var(--slate-700);
  font-weight: 500;
}

.s-row--ok .icon {
  color: var(--green-700);
}

/* Passo 4: as páginas e o botão, direto sobre o fundo escuro. */
.s-ui--doc {
  --from: 4.5em -5em;
  align-items: center;
  gap: 1.2em;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--white);
}

.s-ui--doc .s-swap {
  width: 100%;
}

.s-pages {
  position: relative;
  width: 8.2em;
  height: 11em;
}

.s-page {
  position: absolute;
  inset: 0;
  border-radius: 0.3em;
  background: var(--white);
  box-shadow: 0 0.6em 1.6em rgb(0 0 0 / 0.3);
}

.s-page--2 {
  background: var(--mint-50);
  transform: translateX(1.3em) rotate(6deg);
}

.s-page--3 {
  background: var(--mint-100);
  transform: translateX(-1.3em) rotate(-6deg);
}

.s-page--1 {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding: 1.1em 0.9em;
  color: var(--navy-900);
}

.s-page--1 b {
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.15;
}

.s-page--1 span {
  color: var(--slate-600);
  font-size: 0.55em;
}

.s-page--1 i {
  height: 0.3em;
  border-radius: 1em;
  background: var(--slate-200);
}

.s-page--1 i:first-of-type {
  margin-top: 1.6em;
}

.s-page--1 i:last-of-type {
  width: 60%;
}

.s-cursor {
  position: absolute;
  z-index: 2;
  top: 45%;
  left: 56%;
  width: 1.7em;
  height: 1.7em;
  fill: var(--navy-900);
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgb(var(--c-shadow) / 0.3));
  opacity: 0;
  pointer-events: none;
}

.lp-step__stage--2 .s-ui {
  --from: 6em 5em;
}

.lp-step__stage--3 .s-ui {
  --from: 6em -6em;
}

/* A animação: 6,4 s por ciclo, um cartão começando um pouco depois do outro. */
.js .lp-steps.is-inview .s-cursor {
  animation: s-cursor 6400ms var(--ease-out) infinite;
}

.js .lp-steps.is-inview .s-before {
  animation: s-before 6400ms var(--ease) infinite;
}

.js .lp-steps.is-inview .s-after {
  animation: s-after 6400ms var(--ease) infinite;
}

.js .lp-steps.is-inview .s-pick {
  animation: s-pick 6400ms var(--ease) infinite;
}

.js .lp-steps.is-inview .s-pick::before {
  animation: s-dot 6400ms var(--ease) infinite 500ms;
}

.js .lp-steps.is-inview .s-pick .icon {
  animation: s-after 6400ms var(--ease) infinite;
}

.js .lp-steps.is-inview .s-page--2 {
  animation: s-fan-right 6400ms var(--ease-out) infinite;
}

.js .lp-steps.is-inview .s-page--3 {
  animation: s-fan-left 6400ms var(--ease-out) infinite;
}

.js .lp-steps.is-inview .lp-step:nth-child(2) :is(.s-cursor, .s-before, .s-after, .s-pick) {
  animation-delay: 500ms;
}

.js .lp-steps.is-inview .lp-step:nth-child(3) :is(.s-cursor, .s-before, .s-after) {
  animation-delay: 1000ms;
}

.js .lp-steps.is-inview .lp-step:nth-child(4) :is(.s-cursor, .s-before, .s-after, .s-page) {
  animation-delay: 1500ms;
}

@keyframes s-cursor {
  0% {
    opacity: 0;
    translate: var(--from);
    scale: 1;
  }

  8% {
    opacity: 1;
    translate: var(--from);
  }

  32% {
    translate: 0 0;
    scale: 1;
  }

  36% {
    scale: 0.82;
  }

  40% {
    scale: 1;
  }

  72% {
    opacity: 1;
    translate: 0 0;
  }

  82%,
  100% {
    opacity: 0;
    translate: 0 0;
  }
}

@keyframes s-before {
  0%,
  36% {
    opacity: 1;
    transform: none;
  }

  37% {
    transform: scale(0.97);
  }

  42%,
  94% {
    opacity: 0;
    transform: none;
  }

  100% {
    opacity: 1;
  }
}

@keyframes s-after {
  0%,
  38% {
    opacity: 0;
    transform: translateY(0.3em);
  }

  46%,
  94% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 0;
  }
}

@keyframes s-pick {
  0%,
  37% {
    border-color: var(--slate-300);
    background-color: var(--white);
    box-shadow: inset 0 0 0 0 var(--green-700);
    color: var(--slate-700);
  }

  42%,
  94% {
    border-color: var(--green-700);
    background-color: var(--green-50);
    box-shadow: inset 0 0 0 1px var(--green-700);
    color: var(--green-700);
  }

  100% {
    border-color: var(--slate-300);
    background-color: var(--white);
    box-shadow: inset 0 0 0 0 var(--green-700);
    color: var(--slate-700);
  }
}

/* O ponto some quando a marca de seleção aparece. */
@keyframes s-dot {
  0%,
  37% {
    width: 0.45em;
    margin-right: 0;
    opacity: 1;
  }

  42%,
  94% {
    width: 0;
    margin-right: -0.3em;
    opacity: 0;
  }

  100% {
    width: 0.45em;
    margin-right: 0;
    opacity: 1;
  }
}

@keyframes s-fan-right {
  0%,
  38% {
    transform: none;
  }

  50%,
  94% {
    transform: translateX(1.3em) rotate(6deg);
  }

  100% {
    transform: none;
  }
}

@keyframes s-fan-left {
  0%,
  38% {
    transform: none;
  }

  50%,
  94% {
    transform: translateX(-1.3em) rotate(-6deg);
  }

  100% {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-view] .is-target::after,
  [data-view] .m-record--focus {
    animation: none;
  }

  [data-view="2"] .m-sync__off,
  [data-view="2"] .m-sync__on {
    animation: none;
  }
}
