.steps { display: grid; gap: 0 1.75rem; margin-top: 2rem; }
.steps button {
  position: relative; display: block; width: 100%; padding: 1.1rem 0 1.25rem; border: 0;
  border-top: 4px solid var(--ruling-strong); background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
}
.steps button::before { content: ""; position: absolute; left: 0; top: -4px; height: 4px; width: 0; background: var(--ink); }
.steps button.is-on::before { width: calc(var(--from, 0) * 100%); }
.steps button.is-on.run::before { animation: fill var(--ms, 2400ms) linear forwards; }
.is-held .steps button.is-on::before { width: 100%; animation: none; }
.motion-off .steps button.is-on::before { width: 0; animation: none; }
@keyframes fill { from { width: calc(var(--from, 0) * 100%); } to { width: calc(var(--to, 1) * 100%); } }
.steps .n { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--muted); }
.steps .is-on .n { color: var(--cobalt); }
.steps h3 { margin-top: .4rem; font-size: 1.25rem; }
.steps p { margin-top: .35rem; color: var(--graphite); font-size: 1rem; line-height: 1.5; }
.js .steps button:not(.is-on) h3 { color: var(--graphite); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.screen-wrap { margin-top: 1.25rem; }
.screen-wrap [data-screen] + [data-screen] { margin-top: 1.5rem; }
.js .screen-wrap [data-screen] + [data-screen] { margin-top: 0; }
.browser {
  position: relative; border-radius: .75rem; overflow: hidden; background: #0C1324;
  box-shadow: 0 0 0 1px #2A3656, 0 2.5rem 4rem -2rem rgba(8, 12, 24, .6);
}
.browser-bar { display: flex; align-items: center; gap: .45rem; height: 2.1rem; padding: 0 .9rem; background: #151E33; }
.browser-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #34446A; }
.browser-bar b {
  margin: 0 auto; padding: .15rem 1.2rem; border-radius: 999px; background: #0C1324;
  color: #A7B2C6; font-size: .8125rem; font-weight: 500;
}
.shot-stack { position: relative; aspect-ratio: 1280 / 800; }
.js .shot-stack { cursor: pointer; }
.shot-stack [data-frame] { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.shot-stack [data-frame]:first-child { opacity: 1; }
.js .shot-stack [data-frame] { opacity: 0; }
.js .shot-stack [data-frame].is-on { opacity: 1; }
.shot-stack img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.motion-off .shot-stack [data-frame] { transition: none; }

.tap-ring {
  position: absolute; left: var(--tx); top: var(--ty); width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem;
  border-radius: 50%; border: 3px solid #F3F6F5; box-shadow: 0 0 0 4px rgba(143, 168, 255, .55);
  opacity: 0; transform: scale(1.6);
}
[data-frame].tap .tap-ring { animation: tap .9s ease-out forwards; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.6); } 45% { opacity: 1; transform: scale(.85); } 100% { opacity: .9; transform: scale(1); } }
.tap-at-desk { --tx: 84.1%; --ty: 47.1%; }
.tap-at-phone { --tx: 50%; --ty: 50.3%; }

.choose { margin-top: 1.5rem; font-weight: 600; font-size: 1.125rem; }
.choose .key { font-size: 1.3rem; }

.phone2 { display: none; }
.step-text { display: none; }
@media (max-width: 719px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .6rem; }
  .steps button { padding: .7rem 0 .5rem; }
  .steps h3 { font-size: .9375rem; line-height: 1.25; }
  .steps .n { font-size: 1.35rem; }
  .steps p { display: none; }
  .step-text { display: block; margin-top: .5rem; color: var(--graphite); font-size: 1rem; min-height: 4.6em; }
  .browser { display: none; }
  .phone2 {
    display: block; width: min(17rem, 78vw); margin: .75rem auto 0; padding: .55rem; border-radius: 2.3rem;
    background: #0C1324; box-shadow: inset 0 0 0 1px #2A3656, 0 1.5rem 3rem -1.5rem rgba(8, 12, 24, .6);
  }
  .phone2 .shot-stack { aspect-ratio: 360 / 740; border-radius: 1.8rem; overflow: hidden; }
}
@media (min-width: 1100px) {
  .theatre {
    display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 0 3rem; align-items: start;
    margin-top: 2rem;
  }
  .theatre .steps { grid-template-columns: 1fr; margin-top: 0; }
  .theatre .screen-wrap { margin-top: 0; }
}
