/* Navalha: agenda de barbearia que cobra no Pix. Espresso, latão e letra condensada de letreiro. */
.sc-navalha {
  --brass: #d8b47c;
  --brass-2: #a77a43;
  --muted: #958a7d;
  background:
    radial-gradient(55% 70% at 80% 90%, rgb(216 180 124 / 0.3), transparent 62%),
    radial-gradient(45% 55% at 12% 8%, rgb(130 86 48 / 0.4), transparent 62%),
    #120e0b;
  color: #f4ede3;
}

.nv-phone {
  top: 1.5em;
  left: calc(50% - 9em);
}

.nv-screen {
  display: flex;
  flex-direction: column;
  padding: 0 1.1em;
  background: #0e0c0a;
}

.nv-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.7em;
}

.nv-logo {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: linear-gradient(140deg, #ecd3a5, var(--brass-2));
  color: #1b130b;
}

.nv-logo .sc-ico {
  width: 1.15em;
  height: 1.15em;
}

.nv-brand {
  display: grid;
  line-height: 1.05;
}

.nv-brand b {
  font-size: 1.05em;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.1em;
}

.nv-brand small {
  color: var(--muted);
  font-size: 0.68em;
  letter-spacing: 0.06em;
}

.nv-head .sc-av {
  margin-left: auto;
}

.nv-date {
  margin-top: 1em;
  color: var(--muted);
  font-size: 0.75em;
}

.nv-title {
  font-size: 1.35em;
  font-weight: 750;
  font-stretch: 88%;
  line-height: 1.2;
}

.nv-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35em;
  margin-top: 0.8em;
}

.nv-days span {
  display: grid;
  justify-items: center;
  padding: 0.45em 0;
  border-radius: 0.8em;
  background: #1a1714;
  font-size: 0.9em;
  font-weight: 750;
}

.nv-days small {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 500;
}

.nv-days .is-on {
  background: linear-gradient(160deg, #ecd3a5, var(--brass-2));
  color: #1b130b;
}

.nv-days .is-on small {
  color: rgb(27 19 11 / 0.7);
}

.nv-list {
  display: grid;
  gap: 0.45em;
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
}

.nv-list li {
  position: relative;
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55em;
  height: 3.1em;
  padding: 0 0.7em;
  overflow: hidden;
  border-radius: 0.9em;
  background: #181512;
}

.nv-list li.nv-pick {
  --sel-from: #181512;
  background: #2b2219;
  box-shadow: inset 0 0 0 1px rgb(216 180 124 / 0.6);
}

.nv-list time {
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.nv-list .sc-av {
  font-size: 0.72em;
}

.nv-who {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.nv-who b,
.nv-who small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nv-who b {
  font-size: 0.82em;
}

.nv-who small {
  color: var(--muted);
  font-size: 0.68em;
}

.nv-right {
  font-size: 0.8em;
  font-weight: 750;
}

.nv-paid {
  padding: 0.25em 0.6em;
  border-radius: 99em;
  background: rgb(216 180 124 / 0.16);
  color: var(--brass);
  font-size: 0.85em;
}

.nv-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 3.2em;
  margin-top: 1em;
  overflow: hidden;
  border-radius: 99em;
  background: linear-gradient(160deg, #ecd3a5, var(--brass-2));
  color: #1b130b;
  font-weight: 750;
  box-shadow: 0 0.8em 1.6em -0.6em rgb(216 180 124 / 0.55);
}

.nv-tabs {
  position: absolute;
  right: 1.1em;
  bottom: 1em;
  left: 1.1em;
  display: flex;
  justify-content: space-around;
  padding: 0.8em 0;
  border-radius: 99em;
  background: #1a1714;
  color: var(--muted);
}

.nv-tabs .sc-ico {
  width: 1.3em;
  height: 1.3em;
}

.nv-tabs .is-on {
  color: var(--brass);
}

/* A folha do Pix sobe sobre a agenda; o QR é lido, vira o "recebido" e a folha desce */
.nv-sheet-out {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.nv-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 0.7em 1.3em 1.6em;
  border-radius: 1.8em 1.8em 0 0;
  background: #f6f1e8;
  color: #1c1612;
  box-shadow: 0 -1.5em 3em rgb(0 0 0 / 0.5);
}

.nv-sheet__handle {
  display: block;
  width: 2.6em;
  height: 0.3em;
  margin: 0 auto 0.9em;
  border-radius: 99em;
  background: #d4cabb;
}

.nv-pay,
.nv-done {
  display: grid;
  justify-items: center;
  text-align: center;
}

.nv-done {
  align-self: center;
}

.nv-sheet__title {
  font-size: 1.15em;
  font-weight: 800;
  font-stretch: 88%;
}

.nv-sheet__sub {
  margin-top: 0.15em;
  color: #7a6f63;
  font-size: 0.75em;
}

.nv-qr {
  position: relative;
  width: 11em;
  margin-top: 0.9em;
  overflow: hidden;
  border-radius: 0.8em;
  box-shadow: 0 0 0 1px #e3dace;
}

.nv-scan {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1.8em;
  border-bottom: 2px solid var(--brass-2);
  background: linear-gradient(transparent, rgb(216 180 124 / 0.55));
  opacity: 0;
}

.film.is-playing .nv-scan {
  animation: nv-scan var(--film) linear both;
}

@keyframes nv-scan {
  0%, 33% { opacity: 0; transform: translateY(-1.8em); }
  34% { opacity: 1; transform: translateY(-1.8em); }
  41% { transform: translateY(11em); }
  41.1% { transform: translateY(-1.8em); }
  48% { opacity: 1; transform: translateY(11em); }
  49%, 100% { opacity: 0; transform: translateY(11em); }
}

.nv-sheet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  width: 100%;
  margin-top: 0.9em;
}

.nv-copy {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 0.9em;
  border-radius: 99em;
  background: #1c1612;
  color: #f6f1e8;
  font-size: 0.75em;
  font-weight: 700;
}

.nv-timer {
  color: #7a6f63;
  font-size: 0.7em;
  font-variant-numeric: tabular-nums;
}

.nv-check {
  width: 5.2em;
  margin-top: 0.4em;
  fill: none;
  stroke: var(--brass-2);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nv-check circle {
  stroke: rgb(167 122 67 / 0.4);
  stroke-width: 2.4;
}

.nv-done__title {
  margin-top: 0.8em;
  font-size: 1.05em;
  font-weight: 800;
}

.nv-done__value {
  font-size: 2.3em;
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* O dono vê o caixa do dia subir */
.nv-float {
  position: absolute;
  top: 12.5em;
  left: calc(50% - 28em);
  width: 16em;
  padding: 1.2em 1.3em;
  border-radius: 1.4em;
  background: rgb(30 23 17 / 0.72);
  box-shadow: inset 0 0 0 1px rgb(216 180 124 / 0.2), 0 1.5em 3em -1em rgb(0 0 0 / 0.6);
  -webkit-backdrop-filter: blur(1em);
  backdrop-filter: blur(1em);
}

.nv-float__label {
  color: #a2978a;
  font-size: 0.78em;
}

.nv-float__value {
  margin-top: 0.2em;
  font-size: 2.2em;
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nv-spark {
  display: block;
  width: 100%;
  height: 3.2em;
  margin-top: 0.8em;
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nv-float__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.7em;
  padding: 0.3em 0.7em;
  border-radius: 99em;
  background: rgb(216 180 124 / 0.16);
  color: var(--brass);
  font-size: 0.75em;
  font-weight: 700;
}

.nv-notif {
  top: 5em;
  left: calc(50% + 10.5em);
  width: 19em;
}

.nv-notif .sc-notif__icon {
  background: linear-gradient(140deg, #ecd3a5, var(--brass-2));
  color: #1b130b;
}

/* O cursor toca no Bruno e depois no botão de cobrar (medidas a partir do canto da tela do celular) */
.film.is-playing .nv-cursor {
  animation: nv-cursor var(--film) var(--ease-out) both;
}

@keyframes nv-cursor {
  0%, 7% { opacity: 0; transform: translate(12em, 30em); }
  10% { opacity: 1; transform: translate(10em, 21em); }
  13% { transform: translate(8.5em, 18em) scale(1); }
  14.5% { transform: translate(8.5em, 18em) scale(0.85); }
  16% { transform: translate(8.5em, 18em) scale(1); }
  22.5% { transform: translate(8.3em, 29.2em) scale(1); }
  24.5% { transform: translate(8.3em, 29.2em) scale(0.85); }
  26.5% { opacity: 1; transform: translate(8.3em, 29.2em) scale(1); }
  30%, 100% { opacity: 0; transform: translate(10em, 32em); }
}

@container film (max-width: 560px) {
  .sc-navalha {
    font-size: 2.6cqw;
  }

  .nv-phone {
    top: 2em;
    left: calc(50% - 8.75em);
  }

  .nv-float {
    display: none;
  }

  .nv-notif {
    top: 39.2em;
    left: calc(50% - 10em);
    width: 20em;
  }
}
