/* How it works (/how-it-works/): the page's own sizes for its scenes and pictures; every look is in components.css. */

/* watch: the video on the free plan (Herschel's Nov 18 request), framed beside its words; its poster and play button
   until a click, then Vimeo's player in their place (how-it-works.js), never playing by itself */
.watch__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.watch__copy { display: grid; gap: var(--space-4); justify-items: start; }
.watch__copy h2, .watch__copy .lead { margin: 0; }
.watch__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); }
.watch__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.watch__play img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; transition: transform 0.4s; }
.watch__play:hover img { transform: scale(1.03); }
.watch__play:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -6px; border-radius: var(--radius-l); }
.watch__btn { position: absolute; left: 50%; top: 58%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent); box-shadow: 0 18px 40px -12px #000; transition: transform 0.2s; }
.watch__btn svg { width: 34px; height: 34px; margin-left: 4px; fill: var(--c-ink); }
.watch__play:hover .watch__btn { transform: scale(1.06); }
.watch__time { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c-ink) 72%, transparent); color: var(--c-paper); font: 700 0.9rem/1 var(--font-ui); }
@media (max-width: 900px) { .watch__in { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .watch__btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .watch__btn svg { width: 26px; height: 26px; } }

/* the header: the chat's phone on the notebook's calm side */
.hiw__chat { display: grid; justify-items: end; }
.hiw__chat .scene { width: min(330px, 100%); }
@media (max-width: 900px) { .hiw__chat { justify-items: center; } }

/* your part: one photo, the goal and the market check side by side in glass over its lower part (stacked on the
   phone, under her face) */
.duo__media { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink-2); box-shadow: var(--shadow-l); container-type: inline-size; }
.duo__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--focus, 50% 50%); }
.duo__scenes { position: absolute; z-index: 1; left: clamp(14px, 2.5cqi, 28px); right: clamp(14px, 2.5cqi, 28px); bottom: clamp(14px, 2.5cqi, 28px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.duo__scene { width: min(420px, 48%); }
.duo__scene .scene { width: 100%; }
@media (max-width: 760px) {
  .duo__media { aspect-ratio: 9 / 20; }
  .duo__media img { object-position: var(--focus-phone, var(--focus, 50% 30%)); }
  .duo__scenes { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; gap: 10px; }
  .duo__scene { width: auto; }
}

/* the groups' scenes on this page */
.page-hiw .grp__scene .scene { min-height: 252px; }
@media (min-width: 761px) { .page-hiw .grp__scene { width: min(400px, 56%); } }
/* the team's notifications hang 30 px below their box (wyw's stage): the box is lifted by as much, so they stay on
   the photo */
.page-hiw #team .grp__scene { bottom: calc(clamp(14px, 3.5cqi, 28px) + 30px); }
@media (max-width: 760px) { .page-hiw #team .grp__scene { bottom: 38px; } }

/* the plan builder on the designed ground (its stage as wide as the scene, so the stop icon sits at its corner) */
.hiw__plan { max-width: 900px; margin-inline: auto; }
.hiw__plan .scene { width: 100%; aspect-ratio: 720 / 560; }
@container (width < 600px) { .hiw__plan .scene { aspect-ratio: 360 / 700; } }
