/* Hero: headline, objects in the gutters, the watch on stage. */

.hero {
  position: relative;
  padding-top: 72px;
  text-align: center;
}

.hero-top {
  position: relative;
}

.hero-top > :not(.objs) {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font: 500 12px/1.4 var(--mono);
  color: var(--pencil);
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(44px, 7.4vw, 80px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 .stuck > .sticker {
  position: absolute;
  top: 0.02em;
  left: 100%;
  font-size: 13px;
  transform: translateX(6px) rotate(9deg);
}

.lede {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 18px;
  color: var(--pencil);
  text-wrap: pretty;
}

.ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Objects in the gutters, as on the studio home. Decoration only. */

.objs {
  position: absolute;
  left: calc(50% - min(50vw, 760px));
  width: min(100vw, 1520px);
  top: -72px;
  bottom: -24px;
  pointer-events: none;
  z-index: 0;
}

.o {
  position: absolute;
  filter: drop-shadow(0 12px 14px rgb(30 34 28 / 0.22));
}

.o .sticker {
  padding: 6px 12px;
  font-size: 14px;
  box-shadow: none;
}

.o-trial {
  top: 120px;
  left: 6%;
  rotate: -8deg;
}

.o-nosub {
  top: 330px;
  left: 3%;
  rotate: 7deg;
}

.o-price {
  top: 70px;
  right: 18%;
}

.o-mark {
  top: 230px;
  right: 6%;
  rotate: 8deg;
}

.o-post {
  top: 380px;
  right: 9%;
  rotate: -5deg;
}

.art-price {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font: 700 17px/1 var(--mono);
  rotate: -12deg;
}

.art-mark {
  display: block;
  color: var(--ink);
}

.art-post {
  display: grid;
  gap: 2px;
  width: 128px;
  padding: 14px 14px 18px;
  background: var(--butter);
  color: var(--on-pastel);
  text-align: left;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-post .post-time {
  font: 700 22px/1.1 var(--hand);
  letter-spacing: 0;
  text-transform: none;
}

.art-post span:last-child {
  font: 600 17px/1.1 var(--hand);
  letter-spacing: 0;
  text-transform: none;
  color: #5f675a;
}

@media (prefers-reduced-motion: no-preference) {
  .o {
    animation: bob 7s ease-in-out infinite;
  }

  .o-nosub,
  .o-post {
    animation-delay: -3s;
  }

  .o-price {
    animation-delay: -5s;
  }
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

/* The watch on stage, with pencil notes whose arrows land on the face. */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 20px;
  max-width: 560px;
  margin: 40px auto 0;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 18% 6% 22%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--accent) 40%, transparent),
    transparent 66%
  );
  transition: background 0.5s var(--ease);
}

.watch {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 600 / 840;
}

.watch.small {
  width: min(100%, 300px);
}

.watch-back,
.watch-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The shadow sits on the drawing, not on .watch: a filter there would clip the notes. */
.watch-back {
  filter: drop-shadow(0 34px 34px rgb(20 24 18 / 0.35));
}

.watch-front {
  pointer-events: none;
}

/* Screen circle: r 182 at (300, 420) in a 600 x 840 box, so the render box is 364 wide. */
/* The callouts' percents are of this box, so they stay on the face at every width. */
.render {
  position: absolute;
  left: 19.667%;
  top: 28.333%;
  width: 60.667%;
  aspect-ratio: 1;
}

.render .watch-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Labels sit 16px outside the case; the text tilt takes about 2px of that. */
.note {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: 150px;
  font: 600 22px/1.05 var(--hand);
  color: var(--ink);
  pointer-events: none;
}

.note.left {
  transform: translate(-100%, -50%);
  margin-left: -16px;
  text-align: right;
}

.note.right {
  transform: translateY(-50%);
  margin-left: 16px;
  text-align: left;
}

.note-text {
  display: inline-block;
  rotate: -4deg;
}

/* A paper halo under each arrow keeps it visible over the dark face. */
.callout-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.callout-arrow path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.callout-arrow .halo {
  stroke: var(--card);
  stroke-width: 5;
}

.callout-arrow .line {
  stroke: var(--ink);
  stroke-width: 2;
}

/* Wide enough for labels beside the case: the stage pads out to hold them. */
@media (min-width: 760px) {
  .stage {
    max-width: none;
    padding-inline: 160px;
  }
}

/* Below 760px the arrows would cross the watch, so the same notes read as a list. */
.callout-legend {
  display: none;
}

@media (max-width: 759px) {
  .note,
  .callout-arrow {
    display: none;
  }

  .callout-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    width: 100%;
    max-width: 360px;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 600 20px/1.2 var(--hand);
    color: var(--ink);
  }
}
.swatches {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 6px 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.swatches-label {
  margin-right: 6px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pencil);
}

.swatch {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.swatch::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
  transition: inset 0.2s var(--ease);
}

.swatch[aria-pressed="true"]::before {
  inset: 7px;
}

.swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
