:root {
  --paper: #ffffff;
  --pill: #eef0f3;
  --pill-press: #e4e7ec;
  --track: #e3e6eb;
  --accent: #2f6bff;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--accent);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.install {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 999px;
}
.install:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* the pill: GSAP moves and resizes this element; its width is set from the word by the script */
.install__body {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(52px, 9vmin, 60px);
  padding: 0 clamp(26px, 4.2vmin, 32px);
  border-radius: 999px;
  background: var(--pill);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(16,24,40,.04);
  overflow: hidden;
  will-change: transform;
}
.install__label {
  display: grid;
  place-items: center;
  font-size: clamp(17px, 2.8vmin, 19px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.install__word {
  grid-area: 1 / 1;
  white-space: nowrap;
  width: max-content;
  font-variation-settings: 'wght' 620, 'wdth' 100;
  will-change: transform;
}
/* the ring is as tall as the pill and sits in its middle; GSAP only touches the shapes inside the SVG */
.install__ring {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.install__ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.install__track { fill: none; stroke: var(--track); stroke-width: 2.4; }
.install__arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.install__stop { fill: var(--accent); }
.install__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
