/* Home page sample sites: six made-up businesses inside the phone deck (deck.css).
   Each .site is drawn at a real 375px phone width, then scaled into the frame with --k,
   so the type keeps its true size and only the picture shrinks.
   Motion runs only on the front phone ([data-pos="0"]) and only without reduced motion. */
.site {
  position: relative;
  flex: none;
  width: 375px;
  height: 760px;
  overflow: hidden;
  transform: scale(var(--k));
  transform-origin: 0 0;
  font:
    400 17px/1.45 "Libre Franklin",
    Arial,
    sans-serif;
  text-align: left;
}
.site p,
.site ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.s-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  font-weight: 800;
  font-size: 19px;
}

/* 1. Playful cake shop */
.s-cake {
  padding: 18px 22px;
  background: #ffe6ee;
  color: #3d1a2a;
  font-family: Fredoka, "Libre Franklin", sans-serif;
}
.s-cake .s-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 22px;
}
.s-cake .s-nav i {
  width: 28px;
  height: 18px;
  border-block: 4px solid #3d1a2a;
  border-radius: 4px;
  background: linear-gradient(#3d1a2a, #3d1a2a) center / 100% 4px no-repeat;
}
.s-cake .s-h {
  margin: 26px 0 0;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.02;
}
.s-cake .s-pic {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 22px auto 0;
}
.s-cake .s-pic img {
  width: 100%;
  height: 100%;
  border: 8px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}
.s-cake .s-badge {
  position: absolute;
  right: -26px;
  top: -18px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #ffd34e;
}
.s-cake .s-badge text {
  fill: #3d1a2a;
  font:
    700 11.5px Fredoka,
    sans-serif;
  letter-spacing: 1px;
}
.s-cake .s-btn {
  margin-top: 22px;
  border-radius: 999px;
  background: #b8144f;
  color: #fff;
  font-weight: 600;
  font-size: 21px;
  box-shadow: 0 6px 0 #6e0c30;
}
.s-cake .s-pills {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.s-cake .s-pills li {
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  font-size: 15px;
}
.s-cake .s-pills li:nth-child(2) {
  background: #bfebd9;
}
.s-cake .s-pills li:nth-child(3) {
  background: #cfe6ff;
}
.s-spr i {
  position: absolute;
  width: 6px;
  height: 18px;
  border-radius: 3px;
  background: #ff6fa0;
}
.s-spr i:nth-child(1) {
  left: 300px;
  top: 92px;
  rotate: 30deg;
}
.s-spr i:nth-child(2) {
  left: 28px;
  top: 300px;
  rotate: -40deg;
  background: #48c9a0;
}
.s-spr i:nth-child(3) {
  left: 330px;
  top: 360px;
  rotate: 70deg;
  background: #4aa8ff;
}
.s-spr i:nth-child(4) {
  left: 52px;
  top: 470px;
  rotate: 15deg;
  background: #ffb800;
}
.s-spr i:nth-child(5) {
  left: 250px;
  top: 150px;
  rotate: -65deg;
  background: #9b6bff;
}
.s-spr i:nth-child(6) {
  left: 340px;
  top: 250px;
  rotate: 10deg;
  background: #48c9a0;
}
.s-spr i:nth-child(7) {
  left: 18px;
  top: 160px;
  rotate: 55deg;
  background: #4aa8ff;
}
.s-spr i:nth-child(8) {
  left: 200px;
  top: 720px;
  rotate: -20deg;
  background: #ffb800;
}

/* 2. Bold roofer */
.s-roof {
  background: #ffd23f;
  color: #14120f;
}
.s-roof .s-nav {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  background: #14120f;
  color: #ffd23f;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.12em;
}
.s-roof .s-nav span {
  color: #fff;
  letter-spacing: 0;
  font-weight: 700;
}
.s-roof .s-h {
  padding: 30px 22px 0;
  font-weight: 900;
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.s-roof .s-h span {
  display: block;
}
.s-stripe {
  height: 30px;
  margin: 28px 0 0;
  overflow: hidden;
}
.s-stripe::before {
  content: "";
  display: block;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    #14120f 0 16px,
    #ffd23f 16px 32px
  );
  --d: -45.255px;
}
.s-roof .s-btn {
  margin: 28px 22px 0;
  background: #14120f;
  color: #ffd23f;
  font-size: 21px;
  min-height: 66px;
}
.s-roof .s-list {
  margin: 24px 22px 0;
}
.s-roof .s-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 3px solid #14120f;
  font-weight: 800;
  font-size: 19px;
}
.s-roof .s-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  background: #14120f;
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 20%, 86% 6%, 38% 72%);
}

/* 3. Calm massage studio */
.s-calm {
  padding: 22px 26px;
  background: #e9efe7;
  color: #20352b;
}
.s-calm .s-nav {
  font-family: "Young Serif", Georgia, serif;
  font-size: 23px;
}
.s-calm .s-nav small {
  display: block;
  font:
    500 13px "Libre Franklin",
    sans-serif;
  letter-spacing: 0.08em;
}
.s-ripple {
  position: relative;
  height: 170px;
  margin: 10px 0 0;
}
.s-ripple i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  border: 1.5px solid #6f9a84;
  border-radius: 50%;
  opacity: 0.6;
}
.s-ripple i:nth-child(2) {
  scale: 0.66;
}
.s-ripple i:nth-child(3) {
  scale: 0.33;
  background: #c9dcc9;
}
.s-calm .s-h {
  font-family: "Young Serif", Georgia, serif;
  font-size: 42px;
  line-height: 1.15;
}
.s-calm .s-p {
  margin-top: 14px;
  font-size: 18px;
}
.s-calm .s-btn {
  margin-top: 26px;
  border-radius: 999px;
  background: #2e5a47;
  color: #fff;
  font-weight: 600;
}
.s-calm .s-list {
  margin-top: 26px;
}
.s-calm .s-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #9db8a8;
  font-size: 17px;
}
.s-calm .s-list li span {
  color: #3e5a4c;
}

/* 4. Retro diner */
.s-diner {
  background: #fff4dc;
  color: #2a1a12;
}
.s-check {
  height: 24px;
  overflow: hidden;
}
.s-check::before {
  content: "";
  display: block;
  width: 200%;
  height: 100%;
  background: conic-gradient(
      #2a1a12 25%,
      #fff4dc 0 50%,
      #2a1a12 0 75%,
      #fff4dc 0
    )
    0 0 / 24px 24px;
}
.s-diner .s-logo {
  margin: 26px 0 0;
  color: #d62839;
  font:
    400 60px/1 Shrikhand,
    Georgia,
    serif;
  text-align: center;
  text-shadow: 4px 4px 0 #0f7173;
  rotate: -4deg;
}
.s-star {
  position: absolute;
  right: 18px;
  top: 128px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  background: #f2a541;
  clip-path: polygon(
    50% 0,
    61% 17%,
    80% 9%,
    81% 30%,
    100% 35%,
    89% 52%,
    100% 68%,
    80% 72%,
    79% 92%,
    61% 84%,
    50% 100%,
    39% 84%,
    20% 92%,
    20% 72%,
    0 66%,
    11% 50%,
    0 35%,
    20% 30%,
    20% 9%,
    39% 17%
  );
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
}
.s-diner .s-h {
  margin: 58px 22px 0;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
}
.s-diner .s-btn {
  margin: 22px 22px 0;
  border: 3px solid #2a1a12;
  border-radius: 14px;
  background: #d62839;
  color: #fff;
  font-size: 21px;
  box-shadow: 5px 5px 0 #2a1a12;
}
.s-diner .s-menu {
  margin: 30px 22px 0;
}
.s-diner .s-menu li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  font-weight: 700;
  font-size: 18px;
}
.s-diner .s-menu li::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 3px dotted #0f7173;
}
.s-diner .s-menu li span {
  order: 2;
  color: #0f7173;
  font-weight: 600;
  font-size: 15px;
}

/* 5. Photo-led florist */
.s-flor {
  background: #3a2433;
  color: #fff;
}
.s-flor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.s-flor::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, #3a2433 62%);
}
.s-flor .s-nav {
  position: relative;
  z-index: 1;
  padding: 20px 22px;
  color: #3a2433;
  font:
    italic 400 26px "Young Serif",
    Georgia,
    serif;
}
.s-flor .s-low {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 34px;
}
.s-flor .s-h {
  font:
    400 44px/1.1 "Young Serif",
    Georgia,
    serif;
}
.s-flor .s-p {
  margin-top: 10px;
  color: #f4e6ee;
  font-size: 18px;
}
.s-flor .s-btn {
  margin-top: 22px;
  background: #fff4f8;
  color: #3a2433;
}

/* 6. Dark taproom */
.s-tap {
  padding: 22px 24px;
  background: #13201a;
  color: #f6ebd9;
}
.s-tap .s-nav {
  position: relative;
  color: #f2b33d;
  font:
    400 27px "Young Serif",
    Georgia,
    serif;
}
.s-tap .s-nav small {
  display: block;
  color: #f6ebd9;
  font:
    600 13px "Libre Franklin",
    sans-serif;
  letter-spacing: 0.32em;
}
.s-tap .s-h {
  position: relative;
  margin-top: 118px;
  font:
    400 54px/1.04 "Young Serif",
    Georgia,
    serif;
}
.s-tap .s-btn {
  position: relative;
  margin-top: 26px;
  border-radius: 4px;
  background: #f2b33d;
  color: #13201a;
}
.s-tap .s-taps {
  position: relative;
  margin-top: 26px;
  padding: 4px 16px;
  border: 2px solid #3b5446;
  border-radius: 6px;
}
.s-taps li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #3b5446;
  font-weight: 700;
  font-size: 17px;
}
.s-taps li:last-child {
  border: 0;
}
.s-taps span {
  color: #f2b33d;
  font-weight: 600;
}
.s-fizz i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(242, 179, 61, 0.5);
  border-radius: 50%;
}
.s-fizz i:nth-child(1) {
  left: 300px;
  top: 90px;
}
.s-fizz i:nth-child(2) {
  left: 330px;
  top: 150px;
  width: 8px;
  height: 8px;
}
.s-fizz i:nth-child(3) {
  left: 270px;
  top: 200px;
  width: 16px;
  height: 16px;
}
.s-fizz i:nth-child(4) {
  left: 318px;
  top: 250px;
}
.s-fizz i:nth-child(5) {
  left: 240px;
  top: 120px;
  width: 7px;
  height: 7px;
}
.s-fizz i:nth-child(6) {
  left: 345px;
  top: 60px;
  width: 10px;
  height: 10px;
}

/* Motion on the front phone only */
@media (prefers-reduced-motion: no-preference) {
  [data-pos="0"] .s-spr i {
    animation: s-fall 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) both;
  }
  [data-pos="0"] .s-spr i:nth-child(2n) {
    animation-delay: 0.12s;
  }
  [data-pos="0"] .s-spr i:nth-child(3n) {
    animation-delay: 0.24s;
  }
  [data-pos="0"] .s-badge {
    animation: s-spin 12s linear infinite;
  }
  [data-pos="0"] .s-roof .s-h span {
    animation: s-slam 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both;
  }
  [data-pos="0"] .s-roof .s-h span + span {
    animation-delay: 0.15s;
  }
  [data-pos="0"] .s-stripe::before,
  [data-pos="0"] .s-check::before {
    animation: s-slide 3s linear infinite;
  }
  [data-pos="0"] .s-ripple i {
    animation: s-ripple 3.6s ease-out infinite;
  }
  [data-pos="0"] .s-ripple i:nth-child(2) {
    animation-delay: 1.2s;
  }
  [data-pos="0"] .s-ripple i:nth-child(3) {
    animation-delay: 2.4s;
  }
  [data-pos="0"] .s-star {
    animation: s-wobble 2.4s ease-in-out infinite;
  }
  [data-pos="0"] .s-fizz i {
    animation: s-rise 3.2s linear infinite;
  }
  [data-pos="0"] .s-fizz i:nth-child(2n) {
    animation-duration: 2.6s;
    animation-delay: 0.8s;
  }
  [data-pos="0"] .s-fizz i:nth-child(3n) {
    animation-delay: 1.6s;
  }
  [data-pos="0"] .s-flor img {
    animation: s-zoom 9s ease-out both;
  }
}
@keyframes s-fall {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
}
@keyframes s-spin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes s-slam {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(1.15);
  }
}
@keyframes s-slide {
  to {
    transform: translateX(var(--d, -48px));
  }
}
@keyframes s-ripple {
  from {
    opacity: 0.7;
    transform: scale(0.3);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes s-wobble {
  50% {
    transform: rotate(10deg) scale(1.06);
  }
}
@keyframes s-rise {
  from {
    opacity: 0;
    transform: translateY(220px);
  }
  25% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-80px);
  }
}
@keyframes s-zoom {
  from {
    transform: scale(1.12);
  }
}
