/* Product page: one service seen through the window, with breath on the glass */

.prod-open { align-items: center; }
.prod-sill { align-self: end; }
.prod-kind {
  display: inline-block; margin-bottom: 1rem; padding: .3rem 1rem;
  border: .125rem solid var(--moss); border-radius: 999rem; font-size: 1rem;
  background: rgba(126, 143, 123, .14);
}
.prod-sill h1 { margin-bottom: .5em; }

/* The tall taped window holding the service photograph */
.prod-arch { justify-self: center; margin: 0; }
.prod-arch .arch { aspect-ratio: 4 / 5; max-height: 64svh; }
.prod-arch .arch img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 60rem) {
  .prod-open .stage__grid { align-items: center; }
  .prod-arch { grid-column: 8 / -1; grid-row: 1; width: clamp(17rem, 30vw, 28rem); }
  .prod-sill { grid-column: 1 / span 7; grid-row: 1; }
}
@media (max-width: 59.99rem) {
  .prod-arch { width: min(78%, 20rem); margin: 1rem auto 2.5rem; }
}

/* Breath on the glass: a soft cream mist at the lower edge, clearing upward */
.mist { display: none; }
.js .mist {
  display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(243, 237, 226, .78) 0%, rgba(243, 237, 226, .35) 22%, rgba(243, 237, 226, 0) 45%);
  transform-origin: 50% 0;
  transition: opacity 4s var(--drift), transform 4s var(--drift);
}
.js .breath.is-clear .mist { opacity: 0; transform: translateY(-35%); }

/* Moss sticker with the one-line description, settling onto the frame corner */
.prod-note {
  position: absolute; left: -1.5rem; bottom: 3.5rem; z-index: 5;
  width: 10.5rem; height: 10.5rem; padding: 1.4rem; font-size: .85rem; line-height: 1.3;
  transform: rotate(-4deg);
  transition: transform 1.8s var(--settle) .6s, box-shadow 1.8s var(--settle) .6s;
}
.js .breath:not(.is-clear) .prod-note {
  transform: translate(-.6rem, -1.2rem) rotate(-11deg);
  box-shadow: 0 1.2rem 2rem rgba(34, 26, 46, .3);
}
@media (min-width: 60rem) {
  .prod-note { width: 12rem; height: 12rem; left: -3rem; font-size: .9rem; }
}
@media (max-width: 23rem) {
  .prod-note { width: 9rem; height: 9rem; padding: 1.1rem; font-size: .75rem; left: -.75rem; }
}

/* Second screen: body on a round-topped sill, specs on a pinned note card */
.prod-detail { align-items: center; }
.prod-detail .stage__grid { align-items: start; }
.prod-body h2 { margin-bottom: .8em; }
.prod-card {
  position: relative; z-index: 3; background: var(--cream); color: var(--ink);
  border-radius: 1.5rem; padding: 2.75rem 1.75rem 2rem;
  box-shadow: 0 .75rem 1.75rem rgba(34, 26, 46, .28);
}
.prod-card__pin {
  position: absolute; top: -.9rem; left: 50%; width: 2rem; height: 2rem; margin-left: -1rem;
  border-radius: 50%; background: var(--moss); box-shadow: 0 .3rem .6rem rgba(34, 26, 46, .3);
}
.prod-specs { gap: 1.25rem; }
.prod-specs dd { font-size: 1.05rem; }
@media (min-width: 60rem) {
  .prod-body { grid-column: 1 / span 7; }
  .prod-card { grid-column: 9 / -1; margin-top: 4rem; }
}

/* Third screen: paying, the Write knob, and two neighbouring windows */
.prod-next { align-items: center; }
.prod-write { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.prod-write p { margin: 0; font-size: 1rem; }
.prod-near { position: relative; z-index: 3; }
.prod-near__h {
  display: inline-block; background: var(--cream); padding: .9rem 1.4rem .7rem;
  border-radius: 1.5rem 1.5rem .375rem .375rem; margin-bottom: 1.25rem;
}
.prod-near ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.prod-near__link { display: block; text-decoration: none; }
.prod-near__link .arch {
  display: block; aspect-ratio: 4 / 5;
  box-shadow: 0 .75rem 1.5rem rgba(34, 26, 46, .28);
}
.prod-near__link .arch::after { border-color: var(--cream); }
.prod-near__link img { width: 100%; height: 100%; object-fit: cover; }
.prod-near__link .caption { text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: .2em; }
.prod-near__link:hover .caption { text-decoration-thickness: .25rem; }
.prod-all { margin-top: 1.5rem; }
@media (min-width: 60rem) {
  .prod-pay { grid-column: 1 / span 6; align-self: end; }
  .prod-near { grid-column: 8 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .mist { display: none; }
  .js .breath:not(.is-clear) .prod-note { transform: rotate(-4deg); box-shadow: 0 .3rem .8rem rgba(34, 26, 46, .25); }
}
