.product-detail {
  --tint: #f0d7df;
  --tint-light: #f8e9e7;
  --tint-dark: #c7a5b2;
  --line-ink: 107, 71, 87;
}

.product-detail.elsewhere {
  --tint: #d3e1d1;
  --tint-light: #edf0dc;
  --tint-dark: #aabfae;
  --line-ink: 65, 96, 76;
}

.product-detail.cardamom {
  --tint: #eadabc;
  --tint-light: #f8ebd6;
  --tint-dark: #d1b496;
  --line-ink: 120, 85, 55;
}

.product-detail main {
  display: block;
}

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(2.6rem, 6vw, 6rem);
}

.product-type,
.product-platform {
  font: 500 0.8rem/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-type {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1.35rem;
}

.product-type img {
  border-radius: 22%;
  width: 2rem;
  height: 2rem;
}

.product-copy h1 {
  font: 500 clamp(3.7rem, 7.4vw, 7.3rem)/0.96 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.081em;
  margin: 0 0 1.45rem -0.055em;
}

.product-description {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1.12rem, 1.6vw, 1.5rem);
  line-height: 1.44;
  letter-spacing: -0.032em;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2.15rem 0 1.1rem;
}

.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1.24rem;
  border: 1px solid var(--ink);
  border-radius: 3rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.product-actions .visit-site {
  background: var(--ink);
  color: var(--paper);
}

.product-platform {
  margin: 0;
  color: #4c5954;
  text-transform: none;
  letter-spacing: 0;
}

.product-sleeve {
  appearance: none;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: clamp(26rem, 39vw, 35rem);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(var(--line-ink), 0.23);
  border-radius: 1.1rem;
  background-color: var(--tint);
  background-image:
    linear-gradient(123deg, transparent 28%, #ffffff50 39%, transparent 52%),
    radial-gradient(ellipse at 14% 100%, var(--tint-dark), transparent 58%),
    linear-gradient(140deg, var(--tint-light), var(--tint));
  box-shadow: inset 0 1px 0 #ffffff9c;
  cursor: zoom-in;
}

.product-sleeve::before,
.product-sleeve::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.intervall .product-sleeve::before {
  width: 135%;
  height: 145%;
  transform: rotate(-26deg) translate(4%, 5%);
  background: repeating-linear-gradient(90deg,
    transparent 0 2.6%, rgba(var(--line-ink), 0.10) 2.65% 2.85%,
    #ffffff25 2.91% 3.12%, transparent 3.2% 6.3%);
  mask-image: linear-gradient(28deg, transparent, #000 45%, #000 75%, transparent);
}

.elsewhere .product-sleeve::before {
  width: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(15%, 6%) rotate(-15deg);
  background:
    repeating-radial-gradient(ellipse 29% 64% at center, transparent 0 17%, rgba(var(--line-ink), 0.19) 17.15% 17.6%, transparent 17.8% 18%),
    repeating-linear-gradient(0deg, transparent 0 10%, rgba(var(--line-ink), 0.14) 10.1% 10.4%, transparent 10.6% 11%);
  border: 1px solid rgba(var(--line-ink), 0.19);
}

.cardamom .product-sleeve::before {
  inset: -35% -32%;
  transform: rotate(-12deg);
  background: repeating-conic-gradient(from 25deg at 48% 51%, #ffffff27 0deg 10deg, transparent 11deg 25deg);
  mask-image: linear-gradient(45deg, transparent 12%, #000 45%, #000 75%, transparent);
}

.product-sleeve::after {
  inset: 0;
  background: linear-gradient(143deg, #fffffe53, transparent 42%, #ffffff20 62%, transparent);
}

.product-capture {
  width: auto;
  height: 83%;
  max-width: 63%;
  object-fit: contain;
  box-sizing: content-box;
  border: 3px solid #26342ff2;
  border-radius: 2.03rem;
  background-color: #26342f;
  box-shadow: 0 1px 1px #ffffff7a, 2px 7px 13px -6px #28302f60, 10px 25px 32px -15px #34363155;
  transform: rotate(-3deg);
  transition: transform 270ms ease;
}

.elsewhere .product-capture {
  transform: rotate(3deg);
}

.screen-expand {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(var(--line-ink), 0.24);
  border-radius: 50%;
  background: #fbfcf3a8;
}

.screen-expand svg {
  width: 1rem;
  height: 1rem;
}

.screen-popover {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(95vw, 33rem);
  height: fit-content;
  max-width: none;
  max-height: none;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fff;
}

.screen-popover:not(:popover-open) { display: none; }
.screen-popover::backdrop { background: #101b18e8; }

.screen-enlarged {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 78vh;
  max-height: 78dvh;
  margin-inline: auto;
  border-radius: 1.45rem;
}

.screen-popover button {
  display: block;
  min-height: 2.75rem;
  margin: 0.85rem auto 0;
  padding: 0.55rem 1.5rem;
  border: 1px solid #ffffff80;
  border-radius: 4rem;
  background: #1c2925;
  color: white;
  font: inherit;
  cursor: pointer;
}

.product-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2.7rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--rule);
}

.product-notes h2,
.more-apps h2 {
  margin: 0;
  font: 500 clamp(1.7rem, 3vw, 2.8rem)/1.05 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.055em;
}

.product-notes dl { margin: 0; }
.product-notes dl > div + div { margin-top: 1.65rem; }

.product-notes dt {
  margin-bottom: 0.35rem;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.product-notes dd {
  margin: 0;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #475550;
}

.more-apps {
  padding-block: 2.4rem 2.8rem;
  border-top: 1px solid var(--rule);
}

.more-apps h2 { font-size: 1.6rem; }

.other-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.other-app-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.85rem;
  padding: 0.3rem 1rem 0.3rem 0.4rem;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 3rem;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.15;
}

.other-app-links img {
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
}

.product-detail :is(button, a):focus-visible { outline: 3px solid #405b77; outline-offset: 3px; }
.screen-popover button:focus-visible { outline-color: #f3f7e5; }

@media (hover: hover) {
  .product-sleeve:hover .product-capture { transform: rotate(0deg) scale(1.025); }
  .product-actions a:hover { transform: translateY(-2px); }
  .product-actions a:not(.visit-site):hover,
  .other-app-links a:hover { background: var(--tint-light); }
}

@media (max-width: 48rem) {
  .product-intro { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .product-copy h1 { font-size: clamp(3.5rem, 11vw, 5rem); }
  .product-actions { margin-top: 1.45rem; }
  .product-description { max-width: 34rem; }
  .product-sleeve { height: clamp(23rem, 78vw, 34rem); }
  .product-notes { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}

@media (max-width: 25rem) {
  .product-type { margin-bottom: 0.95rem; }
  .product-intro { gap: 1.6rem; }
  .product-copy h1 { font-size: clamp(2.9rem, 13.5vw, 3.7rem); }
  .product-sleeve { height: 21.25rem; }
  .product-capture { border-radius: 1.35rem; }
  .screen-expand { right: 0.7rem; bottom: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail *, .product-detail *::before, .product-detail *::after {
    transition-duration: 0s !important;
  }
  .product-sleeve:hover .product-capture,
  .product-actions a:hover { transform: none; }
}
