/* Phone mockups on the home page. A screen is drawn at 390x844, the size of the
   prototype in Docs/Prototype, and scaled with --s, so the numbers match it. */

.phone {
  --s: 0.7;
  flex: none;
  position: relative;
  width: calc(390px * var(--s) + 20px);
  height: calc(844px * var(--s) + 20px);
  padding: 10px;
  border-radius: calc(44px * var(--s) + 10px);
  background: #000;
  box-shadow: 0 0 0 1px #3a3a46, 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.phone-screen {
  position: relative;
  width: 390px;
  height: 844px;
  transform: scale(var(--s));
  transform-origin: top left;
  border-radius: 44px;
  overflow: hidden;
  background: var(--ground);
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 112px;
  height: 32px;
  margin-left: -56px;
  border-radius: 16px;
  background: #000;
  z-index: 2;
}

.scr {
  box-sizing: border-box;
  width: 390px;
  height: 844px;
  padding: 60px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scr svg {
  display: block;
}

.s-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.s-round {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.s-dim {
  color: var(--muted);
}

.s-13 {
  font-size: 13px;
}

.s-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
}

.s-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
}

.s-tabs span {
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.s-tabs .is {
  background: var(--accent);
  color: var(--on-accent);
}

.s-grow {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-lines li {
  min-height: 44px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: #5d5d6b;
  transition: color 0.3s;
}

.p-lines small {
  font-size: 14px;
}

.p-lines b {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
}

.p-lines li.on {
  color: var(--muted);
}

.p-lines li.on b {
  color: var(--accent);
}

.s-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.s-bar {
  flex-grow: 1;
  height: 4px;
  border-radius: 2px;
  background: #34343f;
  overflow: hidden;
}

.s-bar i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.s-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s-controls span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.s-controls .play {
  width: 68px;
  height: 68px;
  border-radius: 34px;
  background: var(--accent);
  color: var(--on-accent);
}

.s-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.s-pill {
  height: 52px;
  border-radius: 26px;
  border: 1px solid #34343f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.s-pill.small {
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  align-self: flex-start;
}

.s-center .s-pill.small {
  align-self: center;
}

.s-eq {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
}

.s-eq i {
  width: 8px;
  border-radius: 4px;
  background: var(--accent);
}

.s-eq.small {
  align-items: center;
  gap: 4px;
  height: 40px;
}

.s-eq.small i {
  width: 5px;
  border-radius: 3px;
}

.s-eq .off {
  background: #34343f;
}

.s-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.s-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.s-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.s-steps {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.s-steps i {
  height: 4px;
  border-radius: 2px;
  background: #34343f;
}

.s-steps .is {
  background: var(--accent);
}

.s-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s-options span {
  min-height: 60px;
  border-radius: 18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  font-size: 19px;
  font-weight: 600;
  border: 2px solid #34343f;
}

.s-options .right {
  border-color: var(--accent);
  background: rgba(200, 245, 60, 0.12);
  color: var(--accent);
}

.s-mix {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.s-mix .s-title {
  font-size: 22px;
}

.s-mix .s-eyebrow {
  color: inherit;
}

.s-listen {
  height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 26px;
  background: var(--ground);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
}

.s-squares {
  display: flex;
  gap: 6px;
}

.s-squares i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.s-h2 {
  font-size: 17px;
  font-weight: 600;
}

.s-continue {
  background: var(--surface);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.s-cover {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.s-albums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.s-albums div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.s-albums i {
  height: 108px;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  color: var(--on-accent);
  font-family: "Unbounded", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 26px;
}

.s-mini {
  margin: auto -8px 0;
  height: 60px;
  border-radius: 18px;
  background: var(--surface-2);
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.s-mini i {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
}

/* Where the phones sit */

.hero .phone {
  --s: 0.72;
  justify-self: center;
}

.shots {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shots figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.shots .phone {
  --s: 0.64;
}

.shots figcaption b {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.shots figcaption span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  max-width: 17em;
}

@media (max-width: 860px) {
  .shots {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -20px;
    padding: 4px 20px 16px;
  }
  .shots figure {
    scroll-snap-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-lines li {
    transition: none;
  }
}
