/* The build: a phone running the app he made, and his plan beside it, ticking off as the scene comes into view. */
.build {
  position: relative;
  width: min(100%, 440px);
  height: 540px;
}
.phone {
  position: absolute;
  top: 24px;
  width: 230px;
  height: 470px;
  padding: 8px;
  border-radius: 42px;
  background: #18181c;
  box-shadow:
    0 0 0 1.5px #3a3a40,
    0 50px 90px rgb(0 0 0 / 0.55);
  rotate: -4deg;
}
.phone > div {
  height: 100%;
  padding: 40px 12px 0;
  border-radius: 34px;
  background: #fbf8f3;
  color: var(--ink);
  font: 600 9.5px var(--sys);
}
.phone small {
  color: rgb(0 0 0 / 0.45);
}
.phone p {
  margin: 2px 0 9px;
  font: 600 20px var(--serif);
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.tiles i {
  height: 70px;
  border-radius: 9px;
}
.tiles i:first-child,
.tiles.big i {
  grid-column: span 2;
  height: 118px;
}
.tiles.big i:nth-child(n + 4) {
  display: none;
}
.js .tiles:not(.big) i:not(.on) {
  opacity: 0;
  transform: scale(0.6);
}
.phone .add {
  position: absolute;
  inset: auto 20px 24px;
  padding: 9px;
  border-radius: 99px;
  background: oklch(0.55 0.15 25);
  color: #fff;
  font: 600 12px var(--sys);
  text-align: center;
}
.plan {
  position: absolute;
  top: 160px;
  right: 0;
  z-index: 2;
  width: 250px;
  max-width: 78%;
  padding: 16px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.96);
  color: var(--ink);
  font: 13px / 1.4 var(--sys);
  box-shadow:
    0 30px 60px rgb(0 0 0 / 0.45),
    0 0 0 4px rgb(220 242 62 / 0.35);
  rotate: 3deg;
}
@media (max-width: 40rem) {
  .build {
    height: 640px;
  }
  .plan {
    top: 360px;
  }
}
.app ol,
.plan ol {
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.plan li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.plan li::before {
  content: "✓";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.js .plan li:not(.done) {
  color: rgb(0 0 0 / 0.4);
}
.js .plan li:not(.done)::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 4.5px;
  background: rgb(0 0 0 / 0.18);
}
.js .plan li.now {
  color: var(--ink);
  font-weight: 600;
}
.js .plan li.now::before {
  width: 13px;
  height: 13px;
  margin: 0 1.5px;
  border: 2px solid rgb(0 0 0 / 0.1);
  border-top-color: var(--app);
  background: none;
}
.meter {
  height: 5px;
  margin: 10px 0 6px;
  border-radius: 99px;
  background: rgb(0 0 0 / 0.08);
  overflow: hidden;
}
.meter::after {
  content: "";
  display: block;
  width: var(--done, 100%);
  height: 100%;
  background: var(--ok);
  transition: width 0.6s;
}
.checks {
  color: rgb(0 0 0 / 0.5);
  font-size: 12px;
}
.bigger,
.errand button {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: var(--app);
  color: #fff;
  font: 600 13px var(--sys);
  cursor: pointer;
}

.answer[hidden] {
  display: none;
}
/* Your turn: an errand field, and the plan a demo (not Benji) writes for it. */
.you {
  display: grid;
  justify-items: center;
  max-width: 900px;
  min-height: 90svh;
  margin: 0 auto;
  padding: 12vh max(1.25rem, 5vw);
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
}
.you h2 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}
.errand {
  display: flex;
  gap: 8px;
  width: min(100%, 640px);
  padding: 7px 7px 7px 20px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.95);
  box-shadow:
    0 30px 60px rgb(0 0 0 / 0.35),
    0 0 0 4px rgb(220 242 62 / 0.5);
}
.errand input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 17px var(--sys);
}
.errand input::placeholder {
  color: rgb(29 29 31 / 0.45);
}
.errand input:focus-visible {
  outline: 0;
}
.errand:focus-within {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}
.errand button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 20px;
  background: #123c26;
  color: var(--cream);
  font: italic 600 18px var(--serif);
}
.errand button::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ball);
}
.answer {
  width: min(100%, 560px);
  margin-top: 22px;
  font-size: 14px;
}
.answer .pup {
  width: 44px;
  height: 44px;
  padding: 9px;
}
.answer small {
  color: var(--app);
  text-transform: uppercase;
}
.answer li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 0.5px solid rgb(0 0 0 / 0.07);
  counter-increment: step;
}
.answer li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(94 92 230 / 0.12);
  color: var(--app);
  font-size: 12px;
  font-weight: 700;
}
.sure {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sub);
  font-size: 12.5px;
}
.sure svg {
  width: 15px;
  height: 15px;
  fill: var(--sub);
}
.you > .tag {
  margin-top: 18px;
}
@media (prefers-reduced-motion: no-preference) {
  .tiles i {
    transition:
      height 0.45s,
      opacity 0.5s,
      transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  }
  .plan li.now::before {
    animation: spin 0.9s linear infinite;
  }
  .answer li {
    animation: step 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  }
}
@keyframes step {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}
@keyframes spin {
  to {
    rotate: 1turn;
  }
}
